Class ManagedConnectionCollection
A collection of connections.
Inheritance
System.Object
ManagedConnectionCollection
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ToString()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: FM.LiveSwitch
Assembly: FM.LiveSwitch.dll
Syntax
public class ManagedConnectionCollection : Collection<ManagedConnection, ManagedConnectionCollection>
Methods
AddSuccess(ManagedConnection)
Invoked when an element is added to the collection.
Declaration
protected override void AddSuccess(ManagedConnection value)
Parameters
| Type | Name | Description |
|---|---|---|
| ManagedConnection | value | The value. |
Overrides
FM.LiveSwitch.Collection<FM.LiveSwitch.ManagedConnection, FM.LiveSwitch.ManagedConnectionCollection>.AddSuccess(FM.LiveSwitch.ManagedConnection)
ArrayFromList(List<ManagedConnection>)
Creates an array from a list.
Declaration
protected override ManagedConnection[] ArrayFromList(List<ManagedConnection> list)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Collections.Generic.List<ManagedConnection> | list | The list. |
Returns
| Type | Description |
|---|---|
| ManagedConnection[] |
Overrides
FM.LiveSwitch.Collection<FM.LiveSwitch.ManagedConnection, FM.LiveSwitch.ManagedConnectionCollection>.ArrayFromList(System.Collections.Generic.List<FM.LiveSwitch.ManagedConnection>)
CreateCollection()
Creates a collection.
Declaration
protected override ManagedConnectionCollection CreateCollection()
Returns
| Type | Description |
|---|---|
| ManagedConnectionCollection |
Overrides
FM.LiveSwitch.Collection<FM.LiveSwitch.ManagedConnection, FM.LiveSwitch.ManagedConnectionCollection>.CreateCollection()
GetById(String)
Gets a connection by ID.
Declaration
public ManagedConnection GetById(string id)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | id | The identifier. |
Returns
| Type | Description |
|---|---|
| ManagedConnection | The connection, or |
GetByRemoteId(String)
Gets a connection by remote ID.
Declaration
public ManagedConnection GetByRemoteId(string id)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | id | The identifier. |
Returns
| Type | Description |
|---|---|
| ManagedConnection | The connection, or |
RemoveSuccess(ManagedConnection)
Invoked when an element is removed from the collection.
Declaration
protected override void RemoveSuccess(ManagedConnection value)
Parameters
| Type | Name | Description |
|---|---|---|
| ManagedConnection | value | The value. |
Overrides
FM.LiveSwitch.Collection<FM.LiveSwitch.ManagedConnection, FM.LiveSwitch.ManagedConnectionCollection>.RemoveSuccess(FM.LiveSwitch.ManagedConnection)
TryGetById(String, out ManagedConnection)
Tries to get a connection by ID.
Declaration
public bool TryGetById(string id, out ManagedConnection connection)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | id | The identifier. |
| ManagedConnection | connection | The connection. |
Returns
| Type | Description |
|---|---|
| System.Boolean | The connection, or |
TryGetByRemoteId(String, out ManagedConnection)
Tries to get a connection by remote ID.
Declaration
public bool TryGetByRemoteId(string id, out ManagedConnection connection)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | id | The identifier. |
| ManagedConnection | connection | The connection. |
Returns
| Type | Description |
|---|---|
| System.Boolean | The connection, or |