private static IConsumerErrorStrategy OverrideConsumerErrorStrategy(EasyNetQ.IServiceProvider provider) { return(new ConsumerErrorStrategy( provider.Resolve <IConnectionFactory>(), provider.Resolve <ISerializer>(), provider.Resolve <IEasyNetQLogger>(), provider.Resolve <IConventions>(), provider.Resolve <ITypeNameSerializer>())); }
private static IEasyNetQLogger OverrideLogger(EasyNetQ.IServiceProvider provider) { return(new EasyNetQLogger()); }
private static ISerializer OverrideSerializer(EasyNetQ.IServiceProvider provider) { return(new Serializers.JsonSerializer(provider.Resolve <ITypeNameSerializer>())); }