コード例 #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>()));
 }
コード例 #2
0
 private static ISerializer OverrideSerializer(EasyNetQ.IServiceProvider provider)
 {
     return(new Serializers.JsonSerializer(provider.Resolve <ITypeNameSerializer>()));
 }