public MessageProcessor(IMessageSource msgSource, IMessageMatcher matcher, ISubscriptionStore store, IConfigurationSource cfg) { LiveMessageSource = msgSource; MessageMatcher = matcher; SubscriptionStore = store; TaskDelay = cfg.Get <int>(this, DefaultDelayKey, DefaultDelay); }
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); }
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); }
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); }