示例#1
0
 public static TResult Context <TResult>(this IServiceBus bus, Func <IConsumeContext, TResult> contextCallback)
 {
     return(ContextStorage.Context(contextCallback));
 }
示例#2
0
 public static void Context(this IServiceBus bus, Action <IConsumeContext> contextCallback)
 {
     ContextStorage.Context(contextCallback);
 }
示例#3
0
 public static IConsumeContext <T> MessageContext <T>(this IServiceBus bus)
     where T : class
 {
     return(ContextStorage.MessageContext <T>());
 }
示例#4
0
 public static IConsumeContext <T> MessageContext <T>(this Consumes <T> .All instance)
     where T : class
 {
     return(ContextStorage.MessageContext <T>());
 }
示例#5
0
 public static IConsumeContext Context(this IServiceBus bus)
 {
     return(ContextStorage.Context());
 }
示例#6
0
 public static IConsumeContext Context(this IConsumer instance)
 {
     return(ContextStorage.Context());
 }