public void Stop() { this.StopServices(); this.StopEndpoints(); if (this._globalScope != null) { this._globalScope.Stop(); this._globalScope.Dispose(); this._globalScope = null; } this.UnregisterMessageBroker(); }
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(); }