示例#1
0
 public ServiceActivatorAttributeProcessor(IApplicationContext applicationContext, IEnumerable <IServiceActivatorMethod> methods, ILogger <ServiceActivatorAttributeProcessor> logger)
     : base(applicationContext, logger)
 {
     MessageHandlerProperties.AddRange(new List <string>()
     {
         "OutputChannel", "RequiresReply"
     });
     _serviceActivatorMethods = methods.ToList();
 }
示例#2
0
        protected AbstractMethodAttributeProcessor(IApplicationContext applicatonContext, ILogger logger)
        {
            if (applicatonContext == null)
            {
                throw new ArgumentNullException(nameof(applicatonContext));
            }

            ApplicationContext = applicatonContext;
            _logger            = logger;
            MessageHandlerProperties.Add(SEND_TIMEOUT_PROPERTY);
            ConversionService = ApplicationContext.GetService <IConversionService>();
            if (ConversionService == null)
            {
                ConversionService = DefaultConversionService.Singleton;
            }

            ChannelResolver = new DefaultMessageChannelDestinationResolver(applicatonContext);
            AnnotationType  = typeof(A);
        }