internal static void UninitializeFollowers(Type interfaceType, string initializer, WorkflowQueue initializerQueue) { if (!CorrelationResolver.IsInitializingMember(interfaceType, initializer, null)) return; EventInfo[] events = interfaceType.GetEvents(); foreach (EventInfo e in events) { string follower = e.Name; if (!CorrelationResolver.IsInitializingMember(interfaceType, e.Name, null)) initializerQueue.UnregisterForQueueItemArrived(new FollowerQueueCreator(follower)); } }
internal static void UninitializeFollowers(Type interfaceType, string initializer, WorkflowQueue initializerQueue) { if (CorrelationResolver.IsInitializingMember(interfaceType, initializer, null)) { foreach (EventInfo info in interfaceType.GetEvents()) { string name = info.Name; if (!CorrelationResolver.IsInitializingMember(interfaceType, info.Name, null)) { initializerQueue.UnregisterForQueueItemArrived(new FollowerQueueCreator(name)); } } } }