INNER CODE UNIT · C#

SendTask

graphql-dotnet/graphql-client · src/GraphQL.Client.Abstractions.Websocket/GraphQLWebSocketRequest.cs:45

    public Task SendTask() => _tcs.Task;

    /// <summary>
    /// gets called when the send operation for this request has completed successfully
    /// </summary>
    public void SendCompleted() => _tcs.SetResult(true);

    /// <summary>
    /// gets called when an exception occurs during the send operation
    /// </summary>
    /// <param name="e"></param>
    public void SendFailed(Exception e) => _tcs.SetException(e);

    /// <summary>
    /// gets called when the GraphQLHttpWebSocket has been disposed before the send operation for this request has started
    /// </summary>
    public void SendCanceled() => _tcs.SetCanceled();

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…