# CommandManager

Namespace: **Wisej.Web**

Assembly: **Wisej.Framework** (4.0.0.0)

Supports the [ICommandSource](https://docs.wisej.com/api/wisej.web/interfaces/wisej.web.icommandsource) implementations.

{% tabs %}
{% tab title="C#" %}

```csharp
public class CommandManager : IDisposable
```

{% endtab %}

{% tab title="VB.NET" %}

```visual-basic
Public Class CommandManager
    Inherits IDisposable
```

{% endtab %}
{% endtabs %}

## Methods

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) RefreshCommands()

Causes all the [ICommandSource](https://docs.wisej.com/api/wisej.web/interfaces/wisej.web.icommandsource) components to refresh their commands by invoking the [CanExecute](https://docs.wisej.com/api/interfaces/wisej.web.icommand#canexecute-args) method.

## Events

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) CanExecute

[CancelEventHandler](https://docs.microsoft.com/dotnet/api/system.componentmodel.canceleventhandler) Fired when a [ICommandSource](https://docs.wisej.com/api/wisej.web/interfaces/wisej.web.icommandsource) invokes its command's [CanExecute](https://docs.wisej.com/api/interfaces/wisej.web.icommand#canexecute-args) method.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) Execute

[HandledEventHandler](https://docs.microsoft.com/dotnet/api/system.componentmodel.handledeventhandler) Fired when a [ICommandSource](https://docs.wisej.com/api/wisej.web/interfaces/wisej.web.icommandsource) invokes its command's [Execute](https://docs.wisej.com/api/interfaces/wisej.web.icommand#execute-args) method.
