コード例 #1
0
        public override Task Send(object value)
        {
            var context = new WebSocketTransportContext(this, value);

            // Ensure delegate continues to use the C# Compiler static delegate caching optimization.
            return(EnqueueOperation(state => PerformSend(state), context));
        }
コード例 #2
0
ファイル: WebSocketTransport.cs プロジェクト: nirmana/SignalR
        public override Task Send(object value)
        {
            var context = new WebSocketTransportContext(this, value);

            // Ensure delegate continues to use the C# Compiler static delegate caching optimization.
            return EnqueueOperation(state => PerformSend(state), context);
        }