Class AzureEventHubCommandingDependencies
Inheritance
Inherited Members
Namespace: AzureFromTheTrenches.Commanding.AzureEventHub
Assembly: AzureFromTheTrenches.Commanding.AzureEventHub.dll
Syntax
public static class AzureEventHubCommandingDependencies
Methods
| Improve this Doc View SourceAddEventHubCommandAuditing(ICommandingDependencyResolverAdapter, EventHubClient, IPartitionKeyProvider, AzureEventHubAuditorOptions)
Registers a command auditor that writes to an event hub
Declaration
public static ICommandingDependencyResolverAdapter AddEventHubCommandAuditing(this ICommandingDependencyResolverAdapter resolver, EventHubClient eventHubClient, IPartitionKeyProvider partitionKeyProvider = null, AzureEventHubAuditorOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| ICommandingDependencyResolverAdapter | resolver | Dependency resolver |
| Microsoft.Azure.EventHubs.EventHubClient | eventHubClient | The event hub client |
| IPartitionKeyProvider | partitionKeyProvider | An optional partition key provider, if unspecified events will be sent unpartitioned |
| AzureEventHubAuditorOptions | options | Options for the event hub auditor configuration |
Returns
| Type | Description |
|---|---|
| ICommandingDependencyResolverAdapter | Dependency resolver |
AddEventHubCommandAuditing(ICommandingDependencyResolverAdapter, String, IPartitionKeyProvider, AzureEventHubAuditorOptions)
Registers a command auditor that writes to an event hub
Declaration
public static ICommandingDependencyResolverAdapter AddEventHubCommandAuditing(this ICommandingDependencyResolverAdapter resolver, string connectionString, IPartitionKeyProvider partitionKeyProvider = null, AzureEventHubAuditorOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| ICommandingDependencyResolverAdapter | resolver | Dependency resolver |
| System.String | connectionString | Connection string to an event hub. This needs to also supply the EntityPath e.g.: Endpoint=sb://myeventhub.servicebus.windows.net/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=mysharedaccesskey;EntityPath=myeventhub |
| IPartitionKeyProvider | partitionKeyProvider | An optional partition key provider, if unspecified events will be sent unpartitioned |
| AzureEventHubAuditorOptions | options | Options for the event hub auditor configuration |
Returns
| Type | Description |
|---|---|
| ICommandingDependencyResolverAdapter | Dependency resolver |
AddEventHubCommandAuditing(ICommandingDependencyResolverAdapter, String, String, IPartitionKeyProvider, AzureEventHubAuditorOptions)
Registers a command auditor that writes to an event hub
Declaration
public static ICommandingDependencyResolverAdapter AddEventHubCommandAuditing(this ICommandingDependencyResolverAdapter resolver, string connectionString, string entityPath, IPartitionKeyProvider partitionKeyProvider = null, AzureEventHubAuditorOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| ICommandingDependencyResolverAdapter | resolver | Dependency resolver |
| System.String | connectionString | Connection string to an event hub e.g.: Endpoint=sb://myeventhub.servicebus.windows.net/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=mysharedaccesskey |
| System.String | entityPath | The path to the event hub (usually just the event hub name |
| IPartitionKeyProvider | partitionKeyProvider | An optional partition key provider, if unspecified events will be sent unpartitioned |
| AzureEventHubAuditorOptions | options | Options for the event hub auditor configuration |
Returns
| Type | Description |
|---|---|
| ICommandingDependencyResolverAdapter | Dependency resolver |
UseEventHubCommandAuditing(ICommandingDependencyResolver, EventHubClient, IPartitionKeyProvider, AzureEventHubAuditorOptions)
Registers a command auditor that writes to an event hub
Declaration
[Obsolete("Please use AddEventHubCommandAuditing instead")]
public static ICommandingDependencyResolver UseEventHubCommandAuditing(this ICommandingDependencyResolver resolver, EventHubClient eventHubClient, IPartitionKeyProvider partitionKeyProvider = null, AzureEventHubAuditorOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| ICommandingDependencyResolver | resolver | Dependency resolver |
| Microsoft.Azure.EventHubs.EventHubClient | eventHubClient | The event hub client |
| IPartitionKeyProvider | partitionKeyProvider | An optional partition key provider, if unspecified events will be sent unpartitioned |
| AzureEventHubAuditorOptions | options | Options for the event hub auditor configuration |
Returns
| Type | Description |
|---|---|
| ICommandingDependencyResolver | Dependency resolver |
UseEventHubCommandAuditing(ICommandingDependencyResolver, String, IPartitionKeyProvider, AzureEventHubAuditorOptions)
Registers a command auditor that writes to an event hub
Declaration
[Obsolete("Please use AddEventHubCommandAuditing instead")]
public static ICommandingDependencyResolver UseEventHubCommandAuditing(this ICommandingDependencyResolver resolver, string connectionString, IPartitionKeyProvider partitionKeyProvider = null, AzureEventHubAuditorOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| ICommandingDependencyResolver | resolver | Dependency resolver |
| System.String | connectionString | Connection string to an event hub. This needs to also supply the EntityPath e.g.: Endpoint=sb://myeventhub.servicebus.windows.net/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=mysharedaccesskey;EntityPath=myeventhub |
| IPartitionKeyProvider | partitionKeyProvider | An optional partition key provider, if unspecified events will be sent unpartitioned |
| AzureEventHubAuditorOptions | options | Options for the event hub auditor configuration |
Returns
| Type | Description |
|---|---|
| ICommandingDependencyResolver | Dependency resolver |
UseEventHubCommandAuditing(ICommandingDependencyResolver, String, String, IPartitionKeyProvider, AzureEventHubAuditorOptions)
Registers a command auditor that writes to an event hub
Declaration
[Obsolete]
public static ICommandingDependencyResolver UseEventHubCommandAuditing(this ICommandingDependencyResolver resolver, string connectionString, string entityPath, IPartitionKeyProvider partitionKeyProvider = null, AzureEventHubAuditorOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| ICommandingDependencyResolver | resolver | Dependency resolver |
| System.String | connectionString | Connection string to an event hub e.g.: Endpoint=sb://myeventhub.servicebus.windows.net/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=mysharedaccesskey |
| System.String | entityPath | The path to the event hub (usually just the event hub name |
| IPartitionKeyProvider | partitionKeyProvider | An optional partition key provider, if unspecified events will be sent unpartitioned |
| AzureEventHubAuditorOptions | options | Options for the event hub auditor configuration |
Returns
| Type | Description |
|---|---|
| ICommandingDependencyResolver | Dependency resolver |