示例#1
0
 public RpcHandler(ISerializer serializer,
                   IRpcMiddleware middleware,
                   ILoginValidator validator)
 {
     _codex      = new RpcRequestResponseEncoder(serializer);
     _middleWare = middleware ?? throw new ArgumentNullException(nameof(middleware));
     _validator  = validator;
 }
示例#2
0
 public RpcProxyFilter(Method method,
                       IRequestParamteterResolver <RpcFilterContext> resolver,
                       object instance,
                       string name,
                       ISerializer serializer) : base(method, resolver, instance, name)
 {
     _codex      = new RpcRequestResponseEncoder(serializer);
     _serializer = serializer;
 }
示例#3
0
 public RpcDispatcher(string name, IRequestProcessorManager <RpcFilterContext> processorManager, ISerializer serializer) : base(name, processorManager)
 {
     _codex = new RpcRequestResponseEncoder(serializer);
 }