コード例 #1
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="settings">Set of options to use</param>
 /// <param name="collaborationProtocolRegistry">Reference to the collaboration protocol registry</param>
 /// <param name="addressRegistry">Reference to the address registry</param>
 public MessagingClient(
     MessagingSettings settings,
     ICollaborationProtocolRegistry collaborationProtocolRegistry,
     IAddressRegistry addressRegistry) : base(settings, collaborationProtocolRegistry, addressRegistry)
 {
     _asynchronousServiceBusSender = new AsynchronousSender(ServiceBus);
     _synchronousServiceBusSender  = new SynchronousSender(ServiceBus);
 }
コード例 #2
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="settings">Set of options to use</param>
 /// <param name="loggerFactory"></param>
 /// <param name="collaborationProtocolRegistry">Reference to the collaboration protocol registry</param>
 /// <param name="addressRegistry">Reference to the address registry</param>
 public MessagingClient(
     MessagingSettings settings,
     ILoggerFactory loggerFactory,
     ICollaborationProtocolRegistry collaborationProtocolRegistry,
     IAddressRegistry addressRegistry) : base(settings, collaborationProtocolRegistry, addressRegistry)
 {
     _loggerFactory = loggerFactory ?? throw new ArgumentNullException(nameof(loggerFactory));
     _logger        = _loggerFactory.CreateLogger(nameof(MessagingClient));
     _asynchronousServiceBusSender = new AsynchronousSender(ServiceBus);
     _synchronousServiceBusSender  = new SynchronousSender(ServiceBus);
 }
コード例 #3
0
 public MessagingClient(
     MessagingSettings settings,
     ICollaborationProtocolRegistry collaborationProtocolRegistry,
     IAddressRegistry addressRegistry,
     ICertificateStore certificateStore,
     ICertificateValidator certificateValidator,
     IMessageProtection messageProtection) : base(settings, collaborationProtocolRegistry, addressRegistry, certificateStore, certificateValidator, messageProtection)
 {
     _asynchronousServiceBusSender = new AsynchronousSender(ServiceBus);
     _synchronousServiceBusSender  = new SynchronousSender(ServiceBus);
 }