Esempio n. 1
0
 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>()));
 }
Esempio n. 2
0
 private static IEasyNetQLogger OverrideLogger(EasyNetQ.IServiceProvider provider)
 {
     return(new EasyNetQLogger());
 }
Esempio n. 3
0
 private static ISerializer OverrideSerializer(EasyNetQ.IServiceProvider provider)
 {
     return(new Serializers.JsonSerializer(provider.Resolve <ITypeNameSerializer>()));
 }