C# Class Microsoft.Common.Core.Test.Fakes.Shell.TestCoreShell

Inheritance: ICoreShell, IMainThread
Mostrar archivo Open project: Microsoft/RTVS Class Usage Examples

Public Methods

Method Description
DispatchOnUIThread ( System.Action action ) : void
Post ( System.Action action, CancellationToken cancellationToken ) : void
SaveFileIfDirty ( string fullPath ) : string
ShowContextMenu ( CommandID commandId, int x, int y, object commandTaget = null ) : void
ShowErrorMessage ( string message ) : void
ShowMessage ( string message, MessageButtons buttons, MessageType messageType = MessageType.Information ) : MessageButtons
TestCoreShell ( System.ComponentModel.Composition.Hosting.CompositionContainer container ) : System
UpdateCommandStatus ( bool immediate ) : void

Method Details

DispatchOnUIThread() public method

public DispatchOnUIThread ( System.Action action ) : void
action System.Action
return void

Post() public method

public Post ( System.Action action, CancellationToken cancellationToken ) : void
action System.Action
cancellationToken System.Threading.CancellationToken
return void

SaveFileIfDirty() public method

public SaveFileIfDirty ( string fullPath ) : string
fullPath string
return string

ShowContextMenu() public method

public ShowContextMenu ( CommandID commandId, int x, int y, object commandTaget = null ) : void
commandId System.ComponentModel.Design.CommandID
x int
y int
commandTaget object
return void

ShowErrorMessage() public method

public ShowErrorMessage ( string message ) : void
message string
return void

ShowMessage() public method

public ShowMessage ( string message, MessageButtons buttons, MessageType messageType = MessageType.Information ) : MessageButtons
message string
buttons MessageButtons
messageType MessageType
return MessageButtons

TestCoreShell() public method

public TestCoreShell ( System.ComponentModel.Composition.Hosting.CompositionContainer container ) : System
container System.ComponentModel.Composition.Hosting.CompositionContainer
return System

UpdateCommandStatus() public method

public UpdateCommandStatus ( bool immediate ) : void
immediate bool
return void