Class EndpointsConnectorUtilities
Provides methods to connect MIDI devices. More info in the
Devices connector article.
Inherited Members
Namespace: Melanchall.DryWetMidi.Multimedia
Assembly: Melanchall.DryWetMidi.dll
Syntax
public static class EndpointsConnectorUtilities
Methods
Connect(IInputEndpoint, params IOutputEndpoint[])
Connects an input endpoint to the specified output endpoints.
Declaration
public static EndpointsConnector Connect(this IInputEndpoint inputEndpoint, params IOutputEndpoint[] outputEndpoints)
Parameters
| Type | Name | Description |
|---|---|---|
| IInputEndpoint | inputEndpoint | Input MIDI endpoint to connect to outputEndpoints. |
| IOutputEndpoint[] | outputEndpoints | Output MIDI endpoints to connect inputEndpoint to. |
Returns
| Type | Description |
|---|---|
| EndpointsConnector |
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException | One of the following errors occurred:
|
| ArgumentException | outputEndpoints contains null. |