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; }
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(); }
public ServiceOnceCallParam(ActionInfo action, object[] pureArgs, long streamLength, ReadStream stream, Dictionary <string, object> header) { Action = action; PureArgs = pureArgs; StreamLength = streamLength; Stream = stream; Header = header; }