static IInstanceSubscriptionConnector CreateSelectedContextConnector(MessageInterfaceType x) { return((IInstanceSubscriptionConnector) FastActivator.Create(typeof(SelectedContextInstanceSubscriptionConnector <,>), new[] { typeof(T), x.MessageType })); }
static bool IsNotContextType(MessageInterfaceType x) { return(!(x.MessageType.IsGenericType && x.MessageType.GetGenericTypeDefinition() == typeof(IConsumeContext <>))); }
static IConsumerSubscriptionConnector CreateContextConnector(MessageInterfaceType x) { return((IConsumerSubscriptionConnector) FastActivator.Create(typeof(ContextConsumerSubscriptionConnector <,>), new[] { typeof(T), x.MessageType })); }