コード例 #1
0
        public static THub CreateStrongHubProxyWithExceptionUnwrapping <THub>(this HubConnection connection)
            where THub : class, IClientHubProxyBase
        {
            var hub =
                ReflectionExtensions.Call <Func <HubConnection, bool, THub> >(
                    ClientHubProxyExtensions.CreateStrongHubProxy <THub>)(connection, true);

            return((THub)generator.CreateInterfaceProxyWithTarget(typeof(THub), hub, hubExceptionInterceptor));
        }