/// <summary>
 /// Creates a new invocation request message instance
 /// </summary>
 public InvocationMessage(string target, object[] args)
 {
     this.template = TemplateId.Create();
     this.task     = new TaskCompletionSource <object>();
     this.SetTransferId((UInt64)UniqueId.Next64());
     this.SetInvocationTarget(target);
     this.SetInvocationArgs(args);
 }
Beispiel #2
0
 /// <summary>
 /// Creates a new result message instance
 /// </summary>
 public ResultMessage(UInt64 id, object result)
 {
     this.template = TemplateId.Create();
     this.SetTransferId(id);
     if (result != null)
     {
         this.SetInvocationResult(result);
     }
 }
 /// <summary>
 /// Creates a new exception message instance
 /// </summary>
 public ExceptionMessage(UInt64 id, Exception er)
 {
     this.template = TemplateId.Create();
     this.SetTransferId(id);
     this.SetInvocationResult(er);
 }
 /// <summary>
 /// Creates a new message instance with the given message ID
 /// </summary>
 public Message(UInt32 id)
 {
     this.id       = id;
     this.template = TemplateId.Create();
 }
 /// <summary>
 /// Creates a new execution engine info message instance
 /// </summary>
 public EngineMessage()
 {
     this.template = TemplateId.Create();
     this.SetEngineRegistry(ExecutionEngine.GetEndPoints());
     this.SetEngineVersion(EngineVersion);
 }