public static IRegisterBuilderConsumerEvents ExcludeEventHandler(this IRegisterBuilderConsumerEvents registerBuilder, string name) { var register = registerBuilder as RegisterBuilder; register.EventHandlerExcluded.Add(name); return(register); }
public static IRegisterBuilderConsumerEvents AddEvent(this IRegisterBuilderConsumerEvents registerBuilder, string name) { var register = registerBuilder as RegisterBuilder; register.EventIncluded.Add(name); return(register); }