コード例 #1
0
ファイル: RpcHandler.cs プロジェクト: anlei-fu/Jasmine
 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);
 }