File: DiagnosticsIpc\IpcResponse.cs
Web Access
Project: src\src\diagnostics\src\Microsoft.Diagnostics.NETCore.Client\Microsoft.Diagnostics.NETCore.Client.csproj (Microsoft.Diagnostics.NETCore.Client)
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.

using System;
using System.IO;

namespace Microsoft.Diagnostics.NETCore.Client
{
    internal struct IpcResponse : IDisposable
    {
        public readonly IpcMessage Message;

        public readonly Stream Continuation;

        public IpcResponse(IpcMessage message, Stream continuation)
        {
            Message = message;
            Continuation = continuation;
        }

        public void Dispose()
        {
            Continuation?.Dispose();
        }
    }
}