Class HttpCommandDispatcherFactory
Creates HTTP command dispatcher functions
Inheritance
System.Object
HttpCommandDispatcherFactory
Namespace: AzureFromTheTrenches.Commanding.Http
Assembly: AzureFromTheTrenches.Commanding.Http.dll
Syntax
public static class HttpCommandDispatcherFactory : object
Methods
| Improve this Doc View SourceCreate(Uri, HttpMethod, Func<String>, IHttpCommandSerializer, IUriCommandQueryBuilder, HttpDispatchErrorHandler)
Will create a HTTP command dispatcher. Note if you've supplied a HttpClient to the AddHttpCommanding methods then you should use resolve an instance if IHttpCommandDispatcherFactory and use that instances create method to create a command dispatcher
Declaration
public static Func<ICommandDispatcher> Create(Uri uri, HttpMethod httpMethod = null, Func<string> authenticationHeaderContent = null, IHttpCommandSerializer serializer = null, IUriCommandQueryBuilder uriCommandQueryBuilder = null, HttpDispatchErrorHandler httpDispatchErrorHandler = null)
Parameters
Type | Name | Description |
---|---|---|
Uri | uri | The uri the command should be sent to |
HttpMethod | httpMethod | The verb to send the command with |
Func<System.String> | authenticationHeaderContent | The content of the authentication header (null if none require) |
IHttpCommandSerializer | serializer | An optional serializer. If unspecified the default JSON serializer will be used. |
IUriCommandQueryBuilder | uriCommandQueryBuilder | An optional URI command query builder. If unspecified the default command query builder will be used. |
HttpDispatchErrorHandler | httpDispatchErrorHandler |
Returns
Type | Description |
---|---|
Func<ICommandDispatcher> |