Пример #1
0
 public void Stop()
 {
     this.StopServices();
     this.StopEndpoints();
     if (this._globalScope != null)
     {
         this._globalScope.Stop();
         this._globalScope.Dispose();
         this._globalScope = null;
     }
     this.UnregisterMessageBroker();
 }
Пример #2
0
        public void Start()
        {
            this.RegisterMessageBroker();
            this._globalScope      = new FluorineFx.Messaging.GlobalScope();
            this._globalScope.Name = "default";
            ScopeResolver   scopeResolver  = new ScopeResolver(this._globalScope);
            IClientRegistry clientRegistry = this._clientManager;
            ServiceInvoker  serviceInvoker = new ServiceInvoker();
            ScopeContext    context        = new ScopeContext("/", clientRegistry, scopeResolver, serviceInvoker, null);
            CoreHandler     handler        = new CoreHandler();

            this._globalScope.Context = context;
            this._globalScope.Handler = handler;
            this._globalScope.Register();
            this.StartServices();
            this.StartEndpoints();
        }