C# Class RawRabbit.ErrorHandling.DefaultStrategy

Inheritance: IErrorHandlingStrategy
Show file Open project: pardahlman/RawRabbit Class Usage Examples

Public Methods

Method Description
DefaultStrategy ( IMessageSerializer serializer, INamingConventions conventions, IBasicPropertiesProvider propertiesProvider, ITopologyProvider topologyProvider, IChannelFactory channelFactory ) : System
ExecuteAsync ( Func messageHandler, Task>.Func errorHandler ) : System.Threading.Tasks.Task
OnResponseHandlerExceptionAsync ( IRawConsumer rawConsumer, IConsumerConfiguration cfg, RabbitMQ.Client.Events.BasicDeliverEventArgs args, Exception exception ) : System.Threading.Tasks.Task
OnResponseRecievedAsync ( RabbitMQ.Client.Events.BasicDeliverEventArgs args, TaskCompletionSource responseTcs ) : System.Threading.Tasks.Task
OnResponseRecievedException ( IRawConsumer rawConsumer, IConsumerConfiguration cfg, RabbitMQ.Client.Events.BasicDeliverEventArgs args, TaskCompletionSource responseTcs, Exception exception ) : System.Threading.Tasks.Task
OnSubscriberExceptionAsync ( IRawConsumer consumer, RawRabbit.Configuration.Subscribe.SubscriptionConfiguration config, RabbitMQ.Client.Events.BasicDeliverEventArgs args, Exception exception ) : System.Threading.Tasks.Task

Private Methods

Method Description
UnwrapInnerException ( Exception exception ) : Exception

Method Details

DefaultStrategy() public method

public DefaultStrategy ( IMessageSerializer serializer, INamingConventions conventions, IBasicPropertiesProvider propertiesProvider, ITopologyProvider topologyProvider, IChannelFactory channelFactory ) : System
serializer IMessageSerializer
conventions INamingConventions
propertiesProvider IBasicPropertiesProvider
topologyProvider ITopologyProvider
channelFactory IChannelFactory
return System

ExecuteAsync() public method

public ExecuteAsync ( Func messageHandler, Task>.Func errorHandler ) : System.Threading.Tasks.Task
messageHandler Func
errorHandler Task>.Func
return System.Threading.Tasks.Task

OnResponseHandlerExceptionAsync() public method

public OnResponseHandlerExceptionAsync ( IRawConsumer rawConsumer, IConsumerConfiguration cfg, RabbitMQ.Client.Events.BasicDeliverEventArgs args, Exception exception ) : System.Threading.Tasks.Task
rawConsumer IRawConsumer
cfg IConsumerConfiguration
args RabbitMQ.Client.Events.BasicDeliverEventArgs
exception System.Exception
return System.Threading.Tasks.Task

OnResponseRecievedAsync() public method

public OnResponseRecievedAsync ( RabbitMQ.Client.Events.BasicDeliverEventArgs args, TaskCompletionSource responseTcs ) : System.Threading.Tasks.Task
args RabbitMQ.Client.Events.BasicDeliverEventArgs
responseTcs TaskCompletionSource
return System.Threading.Tasks.Task

OnResponseRecievedException() public method

public OnResponseRecievedException ( IRawConsumer rawConsumer, IConsumerConfiguration cfg, RabbitMQ.Client.Events.BasicDeliverEventArgs args, TaskCompletionSource responseTcs, Exception exception ) : System.Threading.Tasks.Task
rawConsumer IRawConsumer
cfg IConsumerConfiguration
args RabbitMQ.Client.Events.BasicDeliverEventArgs
responseTcs TaskCompletionSource
exception System.Exception
return System.Threading.Tasks.Task

OnSubscriberExceptionAsync() public method

public OnSubscriberExceptionAsync ( IRawConsumer consumer, RawRabbit.Configuration.Subscribe.SubscriptionConfiguration config, RabbitMQ.Client.Events.BasicDeliverEventArgs args, Exception exception ) : System.Threading.Tasks.Task
consumer IRawConsumer
config RawRabbit.Configuration.Subscribe.SubscriptionConfiguration
args RabbitMQ.Client.Events.BasicDeliverEventArgs
exception System.Exception
return System.Threading.Tasks.Task