public PublisherChannelProcessor(IPublisher publisher, Channel <Message> channel, ILogger?log = null) { Log = log ?? NullLogger.Instance; Publisher = publisher; PublisherImpl = (IPublisherImpl)publisher; Channel = channel; Subscriptions = new ConcurrentDictionary <Symbol, SubscriptionProcessor>(); }
public PublisherChannelProcessor(IPublisher publisher, Channel <BridgeMessage> channel, ILoggerFactory?loggerFactory = null) { LoggerFactory = loggerFactory ??= NullLoggerFactory.Instance; Log = LoggerFactory.CreateLogger(GetType()); Publisher = publisher; PublisherImpl = (IPublisherImpl)publisher; Channel = channel; Subscriptions = new ConcurrentDictionary <Symbol, SubscriptionProcessor>(); }
public PublisherChannelProcessor( IPublisher publisher, Channel <BridgeMessage> channel, IServiceProvider services) { Services = services; Publisher = publisher; PublisherImpl = (IPublisherImpl)publisher; Channel = channel; Subscriptions = new ConcurrentDictionary <Symbol, SubscriptionProcessor>(); }