File: System\IO\Pipelines\CompletionData.cs
Web Access
Project: src\src\libraries\System.IO.Pipelines\src\System.IO.Pipelines.csproj (System.IO.Pipelines)
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
 
using System.Threading;
 
namespace System.IO.Pipelines
{
    internal readonly struct CompletionData
    {
        public Action<object?> Completion { get; }
        public object? CompletionState { get; }
        public ExecutionContext? ExecutionContext { get; }
        public SynchronizationContext? SynchronizationContext { get; }
 
        public CompletionData(Action<object?> completion, object? completionState, ExecutionContext? executionContext, SynchronizationContext? synchronizationContext)
        {
            Completion = completion;
            CompletionState = completionState;
            ExecutionContext = executionContext;
            SynchronizationContext = synchronizationContext;
        }
    }
}