C# Class Microsoft.Languages.Editor.Controller.Controller

Command controller (Model-View-Controller pattern)
Inheritance: ICommandTarget, IDisposable
ファイルを表示 Open project: Microsoft/RTVS Class Usage Examples

Private Properties

Property Type Description
Controller System

Public Methods

Method Description
AddCommand ( ICommand command ) : void

Adds command to the controller command table

AddCommandSet ( IEnumerable commands ) : void

Adds a set of commands to the controller command table

Controller ( ICommandTarget chainedController ) : System
Dispose ( ) : void
Find ( System.Guid group, int id ) : ICommand
GetGroupCommands ( System.Guid group ) : ICommand>.IDictionary

Retrieves commands for a particular group

Invoke ( System.Guid group, int id, object inputArg, object &outputArg ) : Microsoft.R.Components.Controller.CommandResult
NonRoutedStatus ( System.Guid group, int id, object inputArg ) : CommandStatus

Non-routed status allows controller to return command status before contained language processes it. For example, HTML controller may decide to handle comment/uncomment command at HTML level rather than pass it down to CSS, JScript, C#, etc. Handling status before regular controller chain allows top level controller to intercept command status.

PostProcessInvoke ( Microsoft.R.Components.Controller.CommandResult result, System.Guid group, int id, object inputArg, object &outputArg ) : void
Status ( System.Guid group, int id ) : CommandStatus

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Private Methods

Method Description
Controller ( ) : System

Method Details

AddCommand() public method

Adds command to the controller command table
public AddCommand ( ICommand command ) : void
command ICommand Command object
return void

AddCommandSet() public method

Adds a set of commands to the controller command table
public AddCommandSet ( IEnumerable commands ) : void
commands IEnumerable List of commands
return void

Controller() public method

public Controller ( ICommandTarget chainedController ) : System
chainedController ICommandTarget
return System

Dispose() public method

public Dispose ( ) : void
return void

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

Find() public method

public Find ( System.Guid group, int id ) : ICommand
group System.Guid
id int
return ICommand

GetGroupCommands() public method

Retrieves commands for a particular group
public GetGroupCommands ( System.Guid group ) : ICommand>.IDictionary
group System.Guid Group id
return ICommand>.IDictionary

Invoke() public method

public Invoke ( System.Guid group, int id, object inputArg, object &outputArg ) : Microsoft.R.Components.Controller.CommandResult
group System.Guid
id int
inputArg object
outputArg object
return Microsoft.R.Components.Controller.CommandResult

NonRoutedStatus() public method

Non-routed status allows controller to return command status before contained language processes it. For example, HTML controller may decide to handle comment/uncomment command at HTML level rather than pass it down to CSS, JScript, C#, etc. Handling status before regular controller chain allows top level controller to intercept command status.
public NonRoutedStatus ( System.Guid group, int id, object inputArg ) : CommandStatus
group System.Guid
id int
inputArg object
return CommandStatus

PostProcessInvoke() public method

public PostProcessInvoke ( Microsoft.R.Components.Controller.CommandResult result, System.Guid group, int id, object inputArg, object &outputArg ) : void
result Microsoft.R.Components.Controller.CommandResult
group System.Guid
id int
inputArg object
outputArg object
return void

Status() public method

public Status ( System.Guid group, int id ) : CommandStatus
group System.Guid
id int
return CommandStatus