Esempio n. 1
0
 public ClientActionExecutingContext(Guid clientProxyId,
                                     IServiceProvider serviceProvider,
                                     string optionsName,
                                     IOnceCall onceCall,
                                     InstanceMethod instanceMethod,
                                     Func <object, Task> callback,
                                     CancellationToken token,
                                     ContractInfo contractInfo,
                                     ContractMethod contractMethod,
                                     ReadStream stream,
                                     object[] pureArgs)
 {
     ClientProxyId     = clientProxyId;
     StartTime         = DateTimeOffset.Now;
     ServiceProvider   = serviceProvider;
     OnceCall          = onceCall;
     InstanceMethod    = instanceMethod;
     Callback          = callback;
     ContractInfo      = contractInfo;
     ContractMethod    = contractMethod;
     CancellationToken = token;
     Stream            = stream;
     PureArgs          = pureArgs;
     OptionsName       = optionsName;
 }
Esempio n. 2
0
 public ActionExecutingContext(IServiceProvider serviceProvider,
                               Dictionary <string, object> header,
                               Instance instance,
                               MethodInfo instanceMethodInfo,
                               ContractMethod contractMethod,
                               object[] args,
                               object[] pureArgs,
                               ActionInfo actionInfo,
                               ReadStream stream,
                               Contract contract,
                               ChannelType channelType,
                               Func <object, Task> callback,
                               CancellationToken token)
 {
     StartTime         = DateTimeOffset.Now;
     ServiceProvider   = serviceProvider;
     ChannelType       = channelType;
     Header            = header;
     InstanceMethod    = instance.Methods.Find(i => i.MethodInfo == instanceMethodInfo);
     ContractMethod    = contractMethod;
     Instance          = instance;
     Args              = args;
     PureArgs          = pureArgs;
     CallbackType      = GetFuncType(args);
     ActionInfo        = actionInfo;
     Callback          = callback;
     Callback          = callback;
     Stream            = stream;
     Contract          = contract;
     CancellationToken = token;
     ResetProps();
 }
Esempio n. 3
0
 public ServiceOnceCallParam(ActionInfo action, object[] pureArgs, long streamLength, ReadStream stream, Dictionary <string, object> header)
 {
     Action       = action;
     PureArgs     = pureArgs;
     StreamLength = streamLength;
     Stream       = stream;
     Header       = header;
 }