Exemplo n.º 1
0
        private void RunSentinel()
        {
            var sentinelHost = new SentinelHost();

            sentinelHost.Run("Marc.Clock", "Nestor.Clock");

            _homeConnectionServer = HomeConnectionServer.CreateConnection(HomeControllerServerAddress, HomeControllerServerPort);

            _subscriptionHost = new SubscriptionHost(sentinelHost, _homeConnectionServer);
            _subscriptionHost.SubscriptionValueChanged += SubscriptionHostOnSubscriptionValueChanged;
        }
 protected HomeControllerHostBase(SentinelHost sentinelHost, HomeConnectionServer homeConnectionServer)
 {
     SentinelHost      = sentinelHost;
     HomeHubConnection = new HomeHubConnection(homeConnectionServer);
     Logger            = LoggerHost.GetLoggerHost(sentinelHost, homeConnectionServer);
 }