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 ISerializer OverrideSerializer(EasyNetQ.IServiceProvider provider) { return(new Serializers.JsonSerializer(provider.Resolve <ITypeNameSerializer>())); }