private void GetPyroServerConnectionUrl() { // FhirApiDiscoveryTask var FhirApiDiscoveryTaskLauncher = new FhirApiDiscoveryTaskLauncher(Container); ConsoleSupport.TimeStampWriteLine(LogMessageSupport.RegisterTask("FhirApiDiscoveryTaskLauncher")); PyroServerConnectionUrl = FhirApiDiscoveryTaskLauncher.Launch(); }
private void LoadTasks() { var hubProxy = hubConnection.CreateHubProxy("BroadcastHub"); Tools.ConsoleSupport.TimeStampWriteLine("Registered Tasks:"); // ======================================================================================== // ============== Registered each task Launcher to run ==================================== // ======================================================================================== // IHI Search Service var IhiSearchServiceTaskLauncher = new IhiSearchServiceTaskLauncher(Container); ConsoleSupport.TimeStampWriteLine(LogMessageSupport.RegisterTask(BackgroundTaskType.HiServiceIHISearch.GetPyroLiteral())); hubProxy.On <TaskPayloadHiServiceIHISearch>(BackgroundTaskType.HiServiceIHISearch.GetPyroLiteral(), IHiServiceResolveIHIPayload => IhiSearchServiceTaskLauncher.Launch(IHiServiceResolveIHIPayload)); // ======================================================================================== }