Interface IEventHubSerializer
Interface for an event hub seriailzer. The default serializer uses Json.
Namespace: AzureFromTheTrenches.Commanding.AzureEventHub
Assembly: AzureFromTheTrenches.Commanding.AzureEventHub.dll
Syntax
public interface IEventHubSerializer
Methods
| Improve this Doc View SourceSerialize(ICommand)
Returns a serialized version of a command
Declaration
string Serialize(ICommand command)
Parameters
Type | Name | Description |
---|---|---|
ICommand | command | The command to serialize |
Returns
Type | Description |
---|---|
System.String | Serialized command |
Serialize(AuditItem)
Return a serialized verison of an audit item
Declaration
string Serialize(AuditItem auditItem)
Parameters
Type | Name | Description |
---|---|---|
AuditItem | auditItem | The audit item to serialize |
Returns
Type | Description |
---|---|
System.String | Serialized audit item |