| File: Notification\IOmniSharpNotificationService.cs | Web Access |
| Project: src\roslyn\src\Features\ExternalAccess\OmniSharp\Microsoft.CodeAnalysis.ExternalAccess.OmniSharp.csproj (Microsoft.CodeAnalysis.ExternalAccess.OmniSharp) |
// 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. namespace Microsoft.CodeAnalysis.ExternalAccess.OmniSharp.Notification; internal interface IOmniSharpNotificationService { /// <summary> /// Displays a message box with an OK button to the user. /// </summary> /// <param name="message">The message shown within the message box.</param> /// <param name="title">The title bar to be shown in the message box. May be ignored by some implementations.</param> /// <param name="severity">The severity of the message.</param> void SendNotification( string message, string? title = null, OmniSharpNotificationSeverity severity = OmniSharpNotificationSeverity.Warning); /// <summary> /// Displays a message box with a yes/no question to the user. /// </summary> /// <param name="message">The message shown within the message box.</param> /// <param name="title">The title bar to be shown in the message box. May be ignored by some implementations.</param> /// <param name="severity">The severity of the message.</param> /// <returns>true if yes was clicked, false otherwise.</returns> bool ConfirmMessageBox( string message, string? title = null, OmniSharpNotificationSeverity severity = OmniSharpNotificationSeverity.Warning); }