コード例 #1
0
 public DemoHub() : base("demo")
 {
     this.longRunningJobStatus               = "Not Started!";
     this.fromArbitraryCodeResult            = string.Empty;
     this.groupAddedResult                   = string.Empty;
     this.dynamicTaskResult                  = string.Empty;
     this.genericTaskResult                  = string.Empty;
     this.taskWithExceptionResult            = string.Empty;
     this.genericTaskWithExceptionResult     = string.Empty;
     this.synchronousExceptionResult         = string.Empty;
     this.invokingHubMethodWithDynamicResult = string.Empty;
     this.simpleArrayResult                  = string.Empty;
     this.complexTypeResult                  = string.Empty;
     this.complexArrayResult                 = string.Empty;
     this.voidOverloadResult                 = string.Empty;
     this.intOverloadResult                  = string.Empty;
     this.readStateResult = string.Empty;
     this.plainTaskResult = string.Empty;
     this.genericTaskWithContinueWithResult = string.Empty;
     this.invokeResults = new GUIMessageList();
     base.On("invoke", new OnMethodCallCallbackDelegate(this.Invoke));
     base.On("signal", new OnMethodCallCallbackDelegate(this.Signal));
     base.On("groupAdded", new OnMethodCallCallbackDelegate(this.GroupAdded));
     base.On("fromArbitraryCode", new OnMethodCallCallbackDelegate(this.FromArbitraryCode));
 }
コード例 #2
0
 public BaseHub(string name, string title) : base(name)
 {
     this.messages = new GUIMessageList();
     this.Title    = title;
     base.On("joined", new OnMethodCallCallbackDelegate(this.Joined));
     base.On("rejoined", new OnMethodCallCallbackDelegate(this.Rejoined));
     base.On("left", new OnMethodCallCallbackDelegate(this.Left));
     base.On("invoked", new OnMethodCallCallbackDelegate(this.Invoked));
 }