/// <summary>
 /// Creates a new instance of MethodResultMessage
 /// </summary>
 /// <param name="result">Message</param>
 /// <returns>Returns a new instance of MethodResultMessage</returns>
 public static MethodResultMessage CreateInstance(MethodResult result, String callid)
 {
     MethodResultMessage instance = new MethodResultMessage();
     instance.result = result;
     instance.callId = callid;
     instance.timestamp = DateTime.Now.Ticks;
     return instance;
 }
Exemplo n.º 2
0
 /// <summary>
 /// Creates an instance
 /// </summary>
 /// <param name="type">Returntype</param>
 /// <param name="arg">Arguments</param>
 /// <param name="metaData">MetaDatas</param>
 /// <param name="className">ClassName</param>
 /// <returns>New instance of MethodResult</returns>
 public static MethodResult CreateInstance(ReturnType type, object arg, IDictionary<string, string> metaData, string className)
 {
     MethodResult result = new MethodResult();
     result.type = type;
     result.arg = arg;
     result.metaData = metaData;
     result.className = className;
     return result;
 }