in src/DotPulsar/Internal/SubConsumer.cs [43:69]
public SubConsumer(
Guid correlationId,
Uri serviceUrl,
string subscriptionName,
SubscriptionType subscriptionType,
string topic,
IRegisterEvent eventRegister,
IConsumerChannel<TMessage> initialChannel,
IExecute executor,
IState<ConsumerState> state,
IConsumerChannelFactory<TMessage> factory)
{
_correlationId = correlationId;
ServiceUrl = serviceUrl;
SubscriptionName = subscriptionName;
SubscriptionType = subscriptionType;
Topic = topic;
_eventRegister = eventRegister;
_channel = initialChannel;
_executor = executor;
_state = state;
_factory = factory;
_commandAckPool = new DefaultObjectPool<CommandAck>(new DefaultPooledObjectPolicy<CommandAck>());
_isDisposed = 0;
_eventRegister.Register(new ConsumerCreated(_correlationId));
}