示例#1
0
 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 <>)));
 }
示例#3
0
 static IConsumerSubscriptionConnector CreateContextConnector(MessageInterfaceType x)
 {
     return((IConsumerSubscriptionConnector)
            FastActivator.Create(typeof(ContextConsumerSubscriptionConnector <,>),
                                 new[] { typeof(T), x.MessageType }));
 }