Show / Hide Table of Contents

Class AzureEventHubCommandingDependencies

Inheritance
System.Object
AzureEventHubCommandingDependencies
Namespace: AzureFromTheTrenches.Commanding.AzureEventHub
Assembly: AzureFromTheTrenches.Commanding.AzureEventHub.dll
Syntax
public static class AzureEventHubCommandingDependencies : object

Methods

| Improve this Doc View Source

AddEventHubCommandAuditing(ICommandingDependencyResolverAdapter, Microsoft.Azure.EventHubs.EventHubClient, IPartitionKeyProvider, AzureEventHubAuditorOptions)

Registers a command auditor that writes to an event hub

Declaration
public static ICommandingDependencyResolverAdapter AddEventHubCommandAuditing(this ICommandingDependencyResolverAdapter resolver, Microsoft.Azure.EventHubs.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

| Improve this Doc View Source

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

| Improve this Doc View Source

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

| Improve this Doc View Source

UseEventHubCommandAuditing(ICommandingDependencyResolver, Microsoft.Azure.EventHubs.EventHubClient, IPartitionKeyProvider, AzureEventHubAuditorOptions)

Registers a command auditor that writes to an event hub

Declaration
public static ICommandingDependencyResolver UseEventHubCommandAuditing(this ICommandingDependencyResolver resolver, Microsoft.Azure.EventHubs.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

| Improve this Doc View Source

UseEventHubCommandAuditing(ICommandingDependencyResolver, String, IPartitionKeyProvider, AzureEventHubAuditorOptions)

Registers a command auditor that writes to an event hub

Declaration
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

| Improve this Doc View Source

UseEventHubCommandAuditing(ICommandingDependencyResolver, String, String, IPartitionKeyProvider, AzureEventHubAuditorOptions)

Registers a command auditor that writes to an event hub

Declaration
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

  • Improve this Doc
  • View Source
  • 0 Comments
Back to top Copyright © 2018 James Randall