Пример #1
0
        private MicroserviceInstance createServiceInstance(Type orchestration, object inputArgs)
        {
            var ms = new MicroserviceInstance()
            {
                OrchestrationInstance = m_HubClient.CreateOrchestrationInstance(orchestration, inputArgs),
            };

            return(ms);
        }
Пример #2
0
 public void RaiseEvent(MicroserviceInstance instance, string eventName, string data)
 {
     m_HubClient.RaiseEvent(instance.OrchestrationInstance, eventName, data);
 }
Пример #3
0
 public async void TerminateAasync(MicroserviceInstance svcInst, string reason = "Terminated by host.")
 {
     await m_HubClient.TerminateInstanceAsync(svcInst.OrchestrationInstance);
 }
Пример #4
0
 public void Terminate(MicroserviceInstance svcInst, string reason = "Terminated by host.")
 {
     m_HubClient.TerminateInstance(svcInst.OrchestrationInstance);
 }