Ejemplo n.º 1
0
        private static Task FlushWriteImmediate(Task antecedant, object state)
        {
            antecedant.GetAwaiter().GetResult();
            RTSocketConnection thisPtr = (RTSocketConnection)state;

            return(thisPtr._outputStream.FlushAsync(thisPtr._sendCts.Token));
        }
Ejemplo n.º 2
0
        private static void OnSendAsyncCompleted(Task antecedant, object state)
        {
            RTSocketConnection thisPtr = (RTSocketConnection)state;

            thisPtr.OnSendAsync(antecedant);
        }
Ejemplo n.º 3
0
 private static async void FlushWriteImmediate(Task antecedant, object state)
 {
     await antecedant;
     RTSocketConnection thisPtr = (RTSocketConnection)state;
     await thisPtr._outputStream.FlushAsync(thisPtr._sendCts.Token);
 }