예제 #1
0
        private void GetPyroServerConnectionUrl()
        {
            // FhirApiDiscoveryTask
            var FhirApiDiscoveryTaskLauncher = new FhirApiDiscoveryTaskLauncher(Container);

            ConsoleSupport.TimeStampWriteLine(LogMessageSupport.RegisterTask("FhirApiDiscoveryTaskLauncher"));
            PyroServerConnectionUrl = FhirApiDiscoveryTaskLauncher.Launch();
        }
예제 #2
0
        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));

            // ========================================================================================
        }