コード例 #1
0
 public MessagingHubListener(IMessagingHubConnection connection, IMessagingHubSender sender = null, bool autoNotify = true)
 {
     _connection     = connection;
     _sender         = sender ?? new MessagingHubSender(connection);
     EnvelopeManager = new EnvelopeReceiverManager(this);
     _autoNotify     = autoNotify;
 }
コード例 #2
0
 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;
 }
コード例 #3
0
 private void CreateActualMessageHubClient()
 {
     MessagingHubConnection = new MessagingHubConnection(_sendTimeout, _maxConnectionRetries, OnDemandClientChannelFactory, 1);
     MessagingHubListener   = new MessagingHubListener(MessagingHubConnection);
     MessagingHubSender     = new MessagingHubSender(MessagingHubConnection);
 }
コード例 #4
0
 public MessagingHubSender(IMessagingHubConnection connection)
 {
     Connection = connection;
 }