C# Class NServiceBus.ConnectorContextExtensions

Contains extensions methods to map behavior contexts.
Show file Open project: Particular/NServiceBus

Public Methods

Method Description
CreateAuditContext ( IAuditContext>.this forkConnector, OutgoingMessage message, string auditAddress, IIncomingPhysicalMessageContext sourceContext ) : IAuditContext

Creates a IAuditContext based on the current context.

CreateBatchDispatchContext ( this stageForkConnector, IReadOnlyCollection transportOperations, IIncomingPhysicalMessageContext sourceContext ) : IBatchDispatchContext

Creates a IBatchDispatchContext based on the current context.

CreateDispatchContext ( IDispatchContext>.this stageConnector, IReadOnlyCollection transportOperations, IBatchDispatchContext sourceContext ) : IDispatchContext

Creates a IDispatchContext based on the current context.

CreateDispatchContext ( IDispatchContext>.this stageConnector, IReadOnlyCollection transportOperations, IRoutingContext sourceContext ) : IDispatchContext

Creates a IDispatchContext based on the current context.

CreateForwardingContext ( IForwardingContext>.this forwardingContext, OutgoingMessage message, string forwardingAddress, IIncomingPhysicalMessageContext sourceContext ) : IForwardingContext

Creates a IForwardingContext based on the current context.

CreateIncomingLogicalMessageContext ( IIncomingLogicalMessageContext>.this stageConnector, LogicalMessage logicalMessage, IIncomingPhysicalMessageContext sourceContext ) : IIncomingLogicalMessageContext

Creates a IIncomingLogicalMessageContext based on the current context.

CreateIncomingPhysicalMessageContext ( this stageForkConnector, IncomingMessage incomingMessage, ITransportReceiveContext sourceContext ) : IIncomingPhysicalMessageContext

Creates a IIncomingPhysicalMessageContext based on the current context.

CreateIncomingPhysicalMessageContext ( IIncomingPhysicalMessageContext>.this stageConnector, IncomingMessage incomingMessage, ITransportReceiveContext sourceContext ) : IIncomingPhysicalMessageContext

Creates a IIncomingPhysicalMessageContext based on the current context.

CreateInvokeHandlerContext ( IInvokeHandlerContext>.this stageConnector, MessageHandler messageHandler, CompletableSynchronizedStorageSession storageSession, IIncomingLogicalMessageContext sourceContext ) : IInvokeHandlerContext

Creates a IInvokeHandlerContext based on the current context.

CreateOutgoingLogicalMessageContext ( IOutgoingLogicalMessageContext>.this stageConnector, OutgoingLogicalMessage outgoingMessage, IReadOnlyCollection routingStrategies, IOutgoingPublishContext sourceContext ) : IOutgoingLogicalMessageContext

Creates a IOutgoingLogicalMessageContext based on the current context.

CreateOutgoingLogicalMessageContext ( IOutgoingLogicalMessageContext>.this stageConnector, OutgoingLogicalMessage outgoingMessage, IReadOnlyCollection routingStrategies, IOutgoingReplyContext sourceContext ) : IOutgoingLogicalMessageContext

Creates a IOutgoingLogicalMessageContext based on the current context.

CreateOutgoingLogicalMessageContext ( IOutgoingLogicalMessageContext>.this stageConnector, OutgoingLogicalMessage outgoingMessage, IReadOnlyCollection routingStrategies, IOutgoingSendContext sourceContext ) : IOutgoingLogicalMessageContext

Creates a IOutgoingLogicalMessageContext based on the current context.

CreateOutgoingPhysicalMessageContext ( IOutgoingPhysicalMessageContext>.this stageConnector, byte messageBody, IReadOnlyCollection routingStrategies, IOutgoingLogicalMessageContext sourceContext ) : IOutgoingPhysicalMessageContext

Creates a IOutgoingPhysicalMessageContext based on the current context.

CreateRoutingContext ( IRoutingContext>.this stageConnector, OutgoingMessage outgoingMessage, RoutingStrategy routingStrategy, IAuditContext sourceContext ) : IRoutingContext

Creates a IRoutingContext based on the current context.

CreateRoutingContext ( IRoutingContext>.this stageConnector, OutgoingMessage outgoingMessage, RoutingStrategy routingStrategy, IForwardingContext sourceContext ) : IRoutingContext

Creates a IRoutingContext based on the current context.

CreateRoutingContext ( IRoutingContext>.this stageConnector, OutgoingMessage outgoingMessage, IReadOnlyCollection routingStrategies, IOutgoingPhysicalMessageContext sourceContext ) : IRoutingContext

Creates a IRoutingContext based on the current context.

CreateRoutingContext ( IRoutingContext>.this forkConnector, OutgoingMessage outgoingMessage, string localAddress, ITransportReceiveContext sourceContext ) : IRoutingContext

Creates a IRoutingContext based on the current context.

Private Methods

Method Description
CreateAuditContext ( this forkConnector, OutgoingMessage message, string auditAddress, IIncomingPhysicalMessageContext sourceContext ) : IAuditContext
CreateForwardingContext ( this forwardingContext, OutgoingMessage message, string forwardingAddress, IIncomingPhysicalMessageContext sourceContext ) : IForwardingContext

Method Details

CreateAuditContext() public static method

Creates a IAuditContext based on the current context.
public static CreateAuditContext ( IAuditContext>.this forkConnector, OutgoingMessage message, string auditAddress, IIncomingPhysicalMessageContext sourceContext ) : IAuditContext
forkConnector IAuditContext>.this
message OutgoingMessage
auditAddress string
sourceContext IIncomingPhysicalMessageContext
return IAuditContext

CreateBatchDispatchContext() public static method

Creates a IBatchDispatchContext based on the current context.
public static CreateBatchDispatchContext ( this stageForkConnector, IReadOnlyCollection transportOperations, IIncomingPhysicalMessageContext sourceContext ) : IBatchDispatchContext
stageForkConnector this
transportOperations IReadOnlyCollection
sourceContext IIncomingPhysicalMessageContext
return IBatchDispatchContext

CreateDispatchContext() public static method

Creates a IDispatchContext based on the current context.
public static CreateDispatchContext ( IDispatchContext>.this stageConnector, IReadOnlyCollection transportOperations, IBatchDispatchContext sourceContext ) : IDispatchContext
stageConnector IDispatchContext>.this
transportOperations IReadOnlyCollection
sourceContext IBatchDispatchContext
return IDispatchContext

CreateDispatchContext() public static method

Creates a IDispatchContext based on the current context.
public static CreateDispatchContext ( IDispatchContext>.this stageConnector, IReadOnlyCollection transportOperations, IRoutingContext sourceContext ) : IDispatchContext
stageConnector IDispatchContext>.this
transportOperations IReadOnlyCollection
sourceContext IRoutingContext
return IDispatchContext

CreateForwardingContext() public static method

Creates a IForwardingContext based on the current context.
public static CreateForwardingContext ( IForwardingContext>.this forwardingContext, OutgoingMessage message, string forwardingAddress, IIncomingPhysicalMessageContext sourceContext ) : IForwardingContext
forwardingContext IForwardingContext>.this
message OutgoingMessage
forwardingAddress string
sourceContext IIncomingPhysicalMessageContext
return IForwardingContext

CreateIncomingLogicalMessageContext() public static method

Creates a IIncomingLogicalMessageContext based on the current context.
public static CreateIncomingLogicalMessageContext ( IIncomingLogicalMessageContext>.this stageConnector, LogicalMessage logicalMessage, IIncomingPhysicalMessageContext sourceContext ) : IIncomingLogicalMessageContext
stageConnector IIncomingLogicalMessageContext>.this
logicalMessage LogicalMessage
sourceContext IIncomingPhysicalMessageContext
return IIncomingLogicalMessageContext

CreateIncomingPhysicalMessageContext() public static method

Creates a IIncomingPhysicalMessageContext based on the current context.
public static CreateIncomingPhysicalMessageContext ( this stageForkConnector, IncomingMessage incomingMessage, ITransportReceiveContext sourceContext ) : IIncomingPhysicalMessageContext
stageForkConnector this
incomingMessage IncomingMessage
sourceContext ITransportReceiveContext
return IIncomingPhysicalMessageContext

CreateIncomingPhysicalMessageContext() public static method

Creates a IIncomingPhysicalMessageContext based on the current context.
public static CreateIncomingPhysicalMessageContext ( IIncomingPhysicalMessageContext>.this stageConnector, IncomingMessage incomingMessage, ITransportReceiveContext sourceContext ) : IIncomingPhysicalMessageContext
stageConnector IIncomingPhysicalMessageContext>.this
incomingMessage IncomingMessage
sourceContext ITransportReceiveContext
return IIncomingPhysicalMessageContext

CreateInvokeHandlerContext() public static method

Creates a IInvokeHandlerContext based on the current context.
public static CreateInvokeHandlerContext ( IInvokeHandlerContext>.this stageConnector, MessageHandler messageHandler, CompletableSynchronizedStorageSession storageSession, IIncomingLogicalMessageContext sourceContext ) : IInvokeHandlerContext
stageConnector IInvokeHandlerContext>.this
messageHandler MessageHandler
storageSession CompletableSynchronizedStorageSession
sourceContext IIncomingLogicalMessageContext
return IInvokeHandlerContext

CreateOutgoingLogicalMessageContext() public static method

Creates a IOutgoingLogicalMessageContext based on the current context.
public static CreateOutgoingLogicalMessageContext ( IOutgoingLogicalMessageContext>.this stageConnector, OutgoingLogicalMessage outgoingMessage, IReadOnlyCollection routingStrategies, IOutgoingPublishContext sourceContext ) : IOutgoingLogicalMessageContext
stageConnector IOutgoingLogicalMessageContext>.this
outgoingMessage OutgoingLogicalMessage
routingStrategies IReadOnlyCollection
sourceContext IOutgoingPublishContext
return IOutgoingLogicalMessageContext

CreateOutgoingLogicalMessageContext() public static method

Creates a IOutgoingLogicalMessageContext based on the current context.
public static CreateOutgoingLogicalMessageContext ( IOutgoingLogicalMessageContext>.this stageConnector, OutgoingLogicalMessage outgoingMessage, IReadOnlyCollection routingStrategies, IOutgoingReplyContext sourceContext ) : IOutgoingLogicalMessageContext
stageConnector IOutgoingLogicalMessageContext>.this
outgoingMessage OutgoingLogicalMessage
routingStrategies IReadOnlyCollection
sourceContext IOutgoingReplyContext
return IOutgoingLogicalMessageContext

CreateOutgoingLogicalMessageContext() public static method

Creates a IOutgoingLogicalMessageContext based on the current context.
public static CreateOutgoingLogicalMessageContext ( IOutgoingLogicalMessageContext>.this stageConnector, OutgoingLogicalMessage outgoingMessage, IReadOnlyCollection routingStrategies, IOutgoingSendContext sourceContext ) : IOutgoingLogicalMessageContext
stageConnector IOutgoingLogicalMessageContext>.this
outgoingMessage OutgoingLogicalMessage
routingStrategies IReadOnlyCollection
sourceContext IOutgoingSendContext
return IOutgoingLogicalMessageContext

CreateOutgoingPhysicalMessageContext() public static method

Creates a IOutgoingPhysicalMessageContext based on the current context.
public static CreateOutgoingPhysicalMessageContext ( IOutgoingPhysicalMessageContext>.this stageConnector, byte messageBody, IReadOnlyCollection routingStrategies, IOutgoingLogicalMessageContext sourceContext ) : IOutgoingPhysicalMessageContext
stageConnector IOutgoingPhysicalMessageContext>.this
messageBody byte
routingStrategies IReadOnlyCollection
sourceContext IOutgoingLogicalMessageContext
return IOutgoingPhysicalMessageContext

CreateRoutingContext() public static method

Creates a IRoutingContext based on the current context.
public static CreateRoutingContext ( IRoutingContext>.this stageConnector, OutgoingMessage outgoingMessage, RoutingStrategy routingStrategy, IAuditContext sourceContext ) : IRoutingContext
stageConnector IRoutingContext>.this
outgoingMessage OutgoingMessage
routingStrategy RoutingStrategy
sourceContext IAuditContext
return IRoutingContext

CreateRoutingContext() public static method

Creates a IRoutingContext based on the current context.
public static CreateRoutingContext ( IRoutingContext>.this stageConnector, OutgoingMessage outgoingMessage, RoutingStrategy routingStrategy, IForwardingContext sourceContext ) : IRoutingContext
stageConnector IRoutingContext>.this
outgoingMessage OutgoingMessage
routingStrategy RoutingStrategy
sourceContext IForwardingContext
return IRoutingContext

CreateRoutingContext() public static method

Creates a IRoutingContext based on the current context.
public static CreateRoutingContext ( IRoutingContext>.this stageConnector, OutgoingMessage outgoingMessage, IReadOnlyCollection routingStrategies, IOutgoingPhysicalMessageContext sourceContext ) : IRoutingContext
stageConnector IRoutingContext>.this
outgoingMessage OutgoingMessage
routingStrategies IReadOnlyCollection
sourceContext IOutgoingPhysicalMessageContext
return IRoutingContext

CreateRoutingContext() public static method

Creates a IRoutingContext based on the current context.
public static CreateRoutingContext ( IRoutingContext>.this forkConnector, OutgoingMessage outgoingMessage, string localAddress, ITransportReceiveContext sourceContext ) : IRoutingContext
forkConnector IRoutingContext>.this
outgoingMessage OutgoingMessage
localAddress string
sourceContext ITransportReceiveContext
return IRoutingContext