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

Command controller (Model-View-Controller pattern)
Inheritance: ICommandTarget, IDisposable
Afficher le fichier Open project: Microsoft/RTVS Class Usage Examples

Private Properties

Свойство Type Description
Controller System

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Private Methods

Méthode Description
Controller ( ) : System

Method Details

AddCommand() public méthode

Adds command to the controller command table
public AddCommand ( ICommand command ) : void
command ICommand Command object
Résultat void

AddCommandSet() public méthode

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

Controller() public méthode

public Controller ( ICommandTarget chainedController ) : System
chainedController ICommandTarget
Résultat System

Dispose() public méthode

public Dispose ( ) : void
Résultat void

Dispose() protected méthode

protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

Find() public méthode

public Find ( System.Guid group, int id ) : ICommand
group System.Guid
id int
Résultat ICommand

GetGroupCommands() public méthode

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

Invoke() public méthode

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
Résultat Microsoft.R.Components.Controller.CommandResult

NonRoutedStatus() public méthode

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
Résultat CommandStatus

PostProcessInvoke() public méthode

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
Résultat void

Status() public méthode

public Status ( System.Guid group, int id ) : CommandStatus
group System.Guid
id int
Résultat CommandStatus