This class represents the return value of an RPC.
Inheritance: IMethodResult
Exemplo n.º 1
0
 /// <summary>
 /// Creates a new instance of MessageResult
 /// </summary>
 /// <param name="result">Result</param>
 /// <param name="callId">CallId</param>
 /// <returns>returns a new instance of MessageResult</returns>
 public static MessageResult CreateInstance(MethodResult result, string callId)
 {
     MessageResult msg = new MessageResult();
     msg.Result = result;
     msg.CallId = callId;
     return msg;
 }
Exemplo n.º 2
0
 /// <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.º 3
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;
 }