Ejemplo n.º 1
0
 public WebServer(BrokerControllerDelegateWrapper wrapper)
 {
     _newSubscriber        = wrapper.newSub;
     _newPublisher         = wrapper.newPub;
     _connectionClosed     = wrapper.closed;
     _newPubTopic          = wrapper.newPubTopic;
     _deletePubTopic       = wrapper.delPubTopic;
     _subUnsubbedFromTopic = wrapper.unsubbed;
     _newConnection        = wrapper.newConnect;
     _newPost    = wrapper.newPost;
     _subToTopic = wrapper.subbedToTopic;
 }
Ejemplo n.º 2
0
        private static BrokerControllerDelegateWrapper createControllerWrapper(BrokerController control)
        {
            BrokerControllerDelegateWrapper wrapper = new BrokerControllerDelegateWrapper();

            wrapper.newPub        = control.newPublisherConnected;
            wrapper.newSub        = control.newSubscriberConnected;
            wrapper.closed        = control.connectionClosed;
            wrapper.newPubTopic   = control.newPublisherTopic;
            wrapper.delPubTopic   = control.deletePublisherTopic;
            wrapper.unsubbed      = control.subscriberUnsubscribedFromTopic;
            wrapper.newConnect    = control.newConnection;
            wrapper.newPost       = control.newPost;
            wrapper.subbedToTopic = control.subscribedToTopic;
            return(wrapper);
        }