public static Tuple <IConnection, IConnection> CreateConnectionFromAddress( string boardName, int boardNumber, int configIndex, OamConnectionType connectionType, string addressString ) { IOamConfiguration config = GetConfigurationByIndex(boardName, boardNumber, configIndex); IOamAddress address; int createResult = OamObjectCreator.CreateAddress(addressString, out address); OamNodeBase node = OamObjectCreator.CreateNode(config, address); IConnection connectionMaster = OamObjectCreator.CreateConnection( connectionType, node, true, OamConnection.OamConnectionRole.SharedMaster); IConnection connectionProxy = OamObjectCreator.CreateConnection( connectionType, node, true, OamConnection.OamConnectionRole.SharedProxy); Tuple <IConnection, IConnection> result = new Tuple <IConnection, IConnection>(connectionMaster, connectionProxy); return(result); }
public IConnection CreateConnection(OamConnectionType connectionType, OmsSessionType sessionType) { return(OMSNode.CreateConnection(connectionType, sessionType)); }
public IConnection CreateConnection(OamConnectionType connectionType, bool useExisting) { return(OMSNode.CreateConnection(connectionType, useExisting)); }