internal ClientInterfaceProxy <TIface> GetProxyDecorator <TIface>(VRpcClient rpcClient) where TIface : class { return(GetProxy <ClientInterfaceProxy <TIface>, TIface, VRpcClient>(InitializeAsyncPropxy, rpcClient)); }
// ctor. /// <summary> /// Принимает открытое соединение Web-Socket. /// </summary> internal ClientSideConnection(VRpcClient client, ClientWebSocket ws, ServiceProvider serviceProvider, InvokeActionsDictionary controllers) : base(ws.ManagedWebSocket, isServer: false, serviceProvider, controllers) { Client = client; }
//[DebuggerStepThrough] private static void InitializeAsyncPropxy <T>(string controllerName, ClientInterfaceProxy <T> p, VRpcClient rpcClient) where T : class { p.InitializeClone(rpcClient, controllerName); }