/// <summary>
        /// Initialize Services Hosting
        /// </summary>
        /// <param name="host">The host</param>
        /// <returns>True if initialization is good</returns>
        public virtual bool InitializeServicesHosting(IPubSubServerHost host)
        {
            var initialized = false;

            try
            {
                this.ProxyManager.Initialize(host);
                this.HostPublishService();
                this.HostSubscriptionService();

                initialized = true;
            }
            catch (Exception exp)
            {
                this.ProxyManager.NotifyHost(exp.Message);
            }

            return(initialized);
        }
Exemplo n.º 2
0
 /// <summary>
 /// Initialize the proxy manager to maintain a link between host
 /// </summary>
 /// <param name="pubSubServerHost">The server host.</param>
 public void Initialize(IPubSubServerHost pubSubServerHost)
 {
     this.PubSubServerHost = pubSubServerHost;
 }