File: ExtensionMessageHandling\ExtensionWorkspaceMessageContext.cs
Web Access
Project: Microsoft.CodeAnalysis.Workspaces.csproj (Microsoft.CodeAnalysis.Workspaces)
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

using System.Diagnostics.CodeAnalysis;

namespace Microsoft.CodeAnalysis.Extensions;

/// <summary>
/// Represents the context of a workspace extension message handler.
/// </summary>
[Experimental("RSEXPERIMENTAL008", UrlFormat = "https://github.com/dotnet/roslyn/pull/85209")]
public readonly struct ExtensionWorkspaceMessageContext
{
    internal ExtensionWorkspaceMessageContext(Solution solution)
    {
        Solution = solution;
    }

    /// <summary>
    /// Gets the current solution state.
    /// </summary>
    public Solution Solution { get; }
}