public MessagingHubListener(IMessagingHubConnection connection, IMessagingHubSender sender = null, bool autoNotify = true) { _connection = connection; _sender = sender ?? new MessagingHubSender(connection); EnvelopeManager = new EnvelopeReceiverManager(this); _autoNotify = autoNotify; }
public MessagingHubClient(IMessagingHubConnection connection, bool autoNotify = true) { Connection = connection; Sender = new MessagingHubSender(connection); Listener = new MessagingHubListener(connection, Sender, autoNotify); _semaphore = new SemaphoreSlim(1, 1); _started = false; }
private void CreateActualMessageHubClient() { MessagingHubConnection = new MessagingHubConnection(_sendTimeout, _maxConnectionRetries, OnDemandClientChannelFactory, 1); MessagingHubListener = new MessagingHubListener(MessagingHubConnection); MessagingHubSender = new MessagingHubSender(MessagingHubConnection); }
public MessagingHubSender(IMessagingHubConnection connection) { Connection = connection; }