C# Class Microsoft.Common.Core.Shell.CoreShellExtensions

显示文件 Open project: Microsoft/RTVS

Public Methods

Method Description
ShowErrorMessageAsync ( this coreShell, string message, CancellationToken cancellationToken = default(CancellationToken) ) : Task
ShowMessageAsync ( this coreShell, string message, MessageButtons buttons, CancellationToken cancellationToken = default(CancellationToken) ) : Task
SwitchToMainThreadAsync ( this coreShell, CancellationToken cancellationToken = default(CancellationToken) ) : MainThreadAwaitable

Private Methods

Method Description
AssertIsOnMainThread ( this coreShell, [ memberName = "", [ sourceFilePath = "", [ sourceLineNumber ) : void

Method Details

ShowErrorMessageAsync() public static method

public static ShowErrorMessageAsync ( this coreShell, string message, CancellationToken cancellationToken = default(CancellationToken) ) : Task
coreShell this
message string
cancellationToken System.Threading.CancellationToken
return Task

ShowMessageAsync() public static method

public static ShowMessageAsync ( this coreShell, string message, MessageButtons buttons, CancellationToken cancellationToken = default(CancellationToken) ) : Task
coreShell this
message string
buttons MessageButtons
cancellationToken System.Threading.CancellationToken
return Task

SwitchToMainThreadAsync() public static method

public static SwitchToMainThreadAsync ( this coreShell, CancellationToken cancellationToken = default(CancellationToken) ) : MainThreadAwaitable
coreShell this
cancellationToken System.Threading.CancellationToken
return Microsoft.Common.Core.Threading.MainThreadAwaitable