Ejemplo n.º 1
0
 /// <summary>
 ///   Initializes a new instance of the <see cref="IdempotentProducer" /> class.
 /// </summary>
 ///
 /// <param name="connectionString">The connection string to use for connecting to the Event Hubs namespace; it is expected that the Event Hub name and the shared key properties are contained in this connection string.</param>
 /// <param name="clientOptions">The set of options to use for this consumer.</param>
 ///
 /// <remarks>
 ///   If the connection string is copied from the Event Hubs namespace, it will likely not contain the name of the desired Event Hub,
 ///   which is needed.  In this case, the name can be added manually by adding ";EntityPath=[[ EVENT HUB NAME ]]" to the end of the
 ///   connection string.  For example, ";EntityPath=telemetry-hub".
 ///
 ///   If you have defined a shared access policy directly on the Event Hub itself, then copying the connection string from that
 ///   Event Hub will result in a connection string that contains the name.
 /// </remarks>
 ///
 /// <seealso href="https://docs.microsoft.com/en-us/azure/event-hubs/event-hubs-get-connection-string">How to get an Event Hubs connection string</seealso>
 ///
 public IdempotentProducer(string connectionString,
                           IdempotentProducerOptions clientOptions) : this(connectionString, null, clientOptions)
 {
 }
Ejemplo n.º 2
0
 /// <summary>
 ///   Initializes a new instance of the <see cref="IdempotentProducer" /> class.
 /// </summary>
 ///
 /// <param name="connection">The <see cref="EventHubConnection" /> connection to use for communication with the Event Hubs service.</param>
 /// <param name="clientOptions">A set of options to apply when configuring the producer.</param>
 ///
 public IdempotentProducer(EventHubConnection connection,
                           IdempotentProducerOptions clientOptions = default) : base(connection, clientOptions.ToCoreOptions())
 {
 }
Ejemplo n.º 3
0
 /// <summary>
 ///   Initializes a new instance of the <see cref="IdempotentProducer" /> class.
 /// </summary>
 ///
 /// <param name="connectionString">The connection string to use for connecting to the Event Hubs namespace; it is expected that the shared key properties are contained in this connection string, but not the Event Hub name.</param>
 /// <param name="eventHubName">The name of the specific Event Hub to associate the producer with.</param>
 /// <param name="clientOptions">A set of options to apply when configuring the producer.</param>
 ///
 /// <remarks>
 ///   If the connection string is copied from the Event Hub itself, it will contain the name of the desired Event Hub,
 ///   and can be used directly without passing the <paramref name="eventHubName" />.  The name of the Event Hub should be
 ///   passed only once, either as part of the connection string or separately.
 /// </remarks>
 ///
 /// <seealso href="https://docs.microsoft.com/en-us/azure/event-hubs/event-hubs-get-connection-string">How to get an Event Hubs connection string</seealso>
 ///
 public IdempotentProducer(string connectionString,
                           string eventHubName,
                           IdempotentProducerOptions clientOptions) : base(connectionString, eventHubName, clientOptions.ToCoreOptions())
 {
 }
Ejemplo n.º 4
0
 /// <summary>
 ///   Initializes a new instance of the <see cref="IdempotentProducer" /> class.
 /// </summary>
 ///
 /// <param name="fullyQualifiedNamespace">The fully qualified Event Hubs namespace to connect to.  This is likely to be similar to <c>{yournamespace}.servicebus.windows.net</c>.</param>
 /// <param name="eventHubName">The name of the specific Event Hub to associate the producer with.</param>
 /// <param name="credential">The Azure managed identity credential to use for authorization.  Access controls may be specified by the Event Hubs namespace or the requested Event Hub, depending on Azure configuration.</param>
 /// <param name="clientOptions">A set of options to apply when configuring the producer.</param>
 ///
 public IdempotentProducer(string fullyQualifiedNamespace,
                           string eventHubName,
                           TokenCredential credential,
                           IdempotentProducerOptions clientOptions = default) : base(fullyQualifiedNamespace, eventHubName, credential, clientOptions.ToCoreOptions())
 {
 }
 /// <summary>
 ///   Initializes a new instance of the <see cref="IdempotentProducer" /> class.
 /// </summary>
 ///
 /// <param name="fullyQualifiedNamespace">The fully qualified Event Hubs namespace to connect to.  This is likely to be similar to <c>{yournamespace}.servicebus.windows.net</c>.</param>
 /// <param name="eventHubName">The name of the specific Event Hub to associate the producer with.</param>
 /// <param name="credential">The shared access signature credential to use for authorization.  Access controls may be specified by the Event Hubs namespace or the requested Event Hub, depending on Azure configuration.</param>
 /// <param name="clientOptions">A set of options to apply when configuring the producer.</param>
 ///
 public IdempotentProducer(string fullyQualifiedNamespace,
                           string eventHubName,
                           AzureSasCredential credential,
                           IdempotentProducerOptions clientOptions = default) : base(fullyQualifiedNamespace, eventHubName, credential, clientOptions)
 {
 }