public MySubscriptionManager(string name, IMyConnector connector) : this(name, connector, new ConcurrentDictionary<int, MySubscription>(), ThreadUtils.Instance, MyRequestSender.DefaultFactory, MyDataReceiver.DefaultFactory, MyDataDispatcher.DefaultFactory) { }
public MySubscriptionManager(string name, IMyConnector connector) : this( name, connector, new ConcurrentDictionary <int, MySubscription>(), ThreadUtils.Instance, MyRequestSender.DefaultFactory, MyDataReceiver.DefaultFactory, MyDataDispatcher.DefaultFactory) { }
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; }
public IMySubscriptionManager Create(string name, IMyConnector connector) { return(new MySubscriptionManager(name, connector)); }
public MyDataReceiver(IMyConnector connector) { this._connector = connector; this._cts = new CancellationTokenSource(); this.DataProduced = new BlockingCollection<MyData>(); }
public IMyDataReceiver Create(IMyConnector connector) { return new MyDataReceiver(connector); }
public MyDataReceiver(IMyConnector connector) { this._connector = connector; this._cts = new CancellationTokenSource(); this.DataProduced = new BlockingCollection <MyData>(); }
public IMyDataReceiver Create(IMyConnector connector) { return(new MyDataReceiver(connector)); }
public IMySubscriptionManager Create(string name, IMyConnector connector) { return new MySubscriptionManager(name, connector); }
public MyRequestSender(IMyConnector connector, BlockingCollection <MyRequest> pendingRequests, CancellationToken ct) { this._connector = connector; this._pendingRequests = pendingRequests; this._ct = ct; }
public IMyRequestSender Create(IMyConnector connector, BlockingCollection <MyRequest> pendingRequests, CancellationToken ct) { return(new MyRequestSender(connector, pendingRequests, ct)); }
public MyRequestSender(IMyConnector connector, BlockingCollection<MyRequest> pendingRequests, CancellationToken ct) { this._connector = connector; this._pendingRequests = pendingRequests; this._ct = ct; }
public IMyRequestSender Create(IMyConnector connector, BlockingCollection<MyRequest> pendingRequests, CancellationToken ct) { return new MyRequestSender(connector, pendingRequests, ct); }