Esempio n. 1
0
 public MessageProcessor(IMessageSource msgSource, IMessageMatcher matcher, ISubscriptionStore store, IConfigurationSource cfg)
 {
     LiveMessageSource = msgSource;
     MessageMatcher    = matcher;
     SubscriptionStore = store;
     TaskDelay         = cfg.Get <int>(this, DefaultDelayKey, DefaultDelay);
 }
Esempio n. 2
0
 public MessageProcessor(IMessageSource msgSource, IMessageMatcher matcher, ISubscriptionStore store, IConfigurationSource cfg)
 {
     LiveMessageSource = msgSource;
     MessageMatcher = matcher;
     SubscriptionStore = store;
     TaskDelay = cfg.Get<int>(this, DefaultDelayKey, DefaultDelay);
 }
        public void SetAssociation <TClass, TAspect>(IMessageMatcher matcher)
            where TAspect : AspectBase
        {
            var        ci         = typeof(TAspect).GetConstructor(Type.EmptyTypes);
            AspectBase controller = Activator.CreateInstance <TAspect>() as AspectBase;

            _associations[typeof(TClass)] = new AspectControllerInfo(controller, matcher);
        }
Esempio n. 4
0
 public AOPControllerInfo(AOPBaseController controller, IMessageMatcher matcher)
 {
     this.controller = controller;
     this.matcher = matcher;
 }
		public AspectControllerInfo(AspectBase controller, IMessageMatcher matcher)
		{
			Controller = controller;
			Matcher = matcher;
		}
 public ConfirmationMatcher <T> HappensAfter(IMessageMatcher matcher)
 {
     happensAfter.Add(matcher);
     return(this);
 }
 public ConfirmationMatcher <T> HappensBefore(IMessageMatcher matcher)
 {
     happensBefore.Add(matcher);
     return(this);
 }
Esempio n. 8
0
 public static void SetAssoc(Type classType, Type controllerType, IMessageMatcher matcher)
 {
     ConstructorInfo ci = controllerType.GetConstructor(Type.EmptyTypes);
     AOPBaseController controller = (AOPBaseController)ci.Invoke(null);
     associations[classType] = new AOPControllerInfo(controller, matcher);
 }
 public AspectControllerInfo(AspectBase controller, IMessageMatcher matcher)
 {
     Controller = controller;
     Matcher    = matcher;
 }