示例#1
0
 // Token: 0x060000CB RID: 203 RVA: 0x00005498 File Offset: 0x00003698
 public static void RegisterAssistant(string assistantName, TimeBasedAssistantController controller)
 {
     AssistantsRpcServer.Tracer.TraceDebug <string>(0L, "Assistant {0} registered", assistantName);
     lock (AssistantsRpcServer.timeBasedAssistants)
     {
         AssistantsRpcServer.timeBasedAssistants.Add(assistantName, controller);
     }
 }
示例#2
0
 // Token: 0x060000D1 RID: 209 RVA: 0x00005694 File Offset: 0x00003894
 public override int HaltHR(string assistantName)
 {
     AssistantsRpcServer.Tracer.TraceDebug <string>((long)this.GetHashCode(), "HaltHR requested for assistant={0}", assistantName);
     return(AssistantsRpcServer.Execute(delegate
     {
         TimeBasedAssistantController controller = AssistantsRpcServer.GetController(assistantName);
         controller.Halt();
     }, assistantName));
 }
 // Token: 0x060003DD RID: 989 RVA: 0x00012524 File Offset: 0x00010724
 public void WaitUntilStopped(TimeBasedAssistantController assistantController)
 {
     AIBreadcrumbs.ShutdownTrail.Drop("Waiting for stop on time assistant: " + this.Assistant.NonLocalizedName);
     ExTraceGlobals.TimeBasedAssistantControllerTracer.TraceDebug <TimeBasedAssistantController, TimeBasedDatabaseDriver>((long)this.GetHashCode(), "{0}: Waiting stop of {1}", assistantController, this);
     this.workerThreadsClear.WaitOne();
     AIBreadcrumbs.ShutdownTrail.Drop("Done waiting for: " + this.Assistant.NonLocalizedName);
     lock (this.instanceLock)
     {
         this.Deinitialize();
     }
 }
示例#4
0
 // Token: 0x060000D0 RID: 208 RVA: 0x000055CC File Offset: 0x000037CC
 public override int RunNowWithParamsHR(string assistantName, ValueType mailboxGuid, ValueType mdbGuid, string parameters)
 {
     AssistantsRpcServer.Tracer.TraceDebug((long)this.GetHashCode(), "RunNowWithParamsHR requested for assistant={0}, mailbox={1}, database={2}, parameters={3}", new object[]
     {
         assistantName,
         mailboxGuid,
         mdbGuid,
         string.IsNullOrEmpty(parameters) ? "<null>" : parameters
     });
     return(AssistantsRpcServer.Execute(delegate
     {
         TimeBasedAssistantController controller = AssistantsRpcServer.GetController(assistantName);
         controller.RunNow((Guid)mailboxGuid, (Guid)mdbGuid, parameters);
     }, assistantName));
 }
 public TimeBasedAssistantControllerWrapper(TimeBasedAssistantController controller)
 {
     this.controller = controller;
 }