Ejemplo n.º 1
0
 internal MyConnector(
     string[] uris,
     IConnectionEventFirer eventFirer,
     IThreadUtils threadUtils,
     IMyDriverClientFactory clientFactory)
 {
     this._uris = uris;
     this._eventFirer = eventFirer;
     this._threadUtils = threadUtils;
     this._clientFactory = clientFactory;
 }
        internal MySubscriptionManager(
            string name,
            IMyConnector connector,
            /* Dependencies */
            IDictionary <int, MySubscription> subscriptions,
            IThreadUtils threadUtils,
            IMyRequestSenderFactory requestSenderFactory,
            IMyDataReceiverFactory receiverFactory,
            IMyDataDispatcherFactory dispatcherFactory)
        {
            this._name      = name;
            this._connector = connector;

            this._subscriptions        = subscriptions;
            this._threadUtils          = threadUtils;
            this._requestSenderFactory = requestSenderFactory;
            this._receiverFactory      = receiverFactory;
            this._dispatcherFactory    = dispatcherFactory;
        }
        internal MySubscriptionManager(
            string name,
            IMyConnector connector,
            /* Dependencies */
            IDictionary<int, MySubscription> subscriptions,
            IThreadUtils threadUtils,
            IMyRequestSenderFactory requestSenderFactory,
            IMyDataReceiverFactory receiverFactory,
            IMyDataDispatcherFactory dispatcherFactory)
        {
            this._name = name;
            this._connector = connector;

            this._subscriptions = subscriptions;
            this._threadUtils = threadUtils;
            this._requestSenderFactory = requestSenderFactory;
            this._receiverFactory = receiverFactory;
            this._dispatcherFactory = dispatcherFactory;
        }