/// <summary> /// Gets the connections. /// </summary> /// <returns></returns> public override IDataReader GetConnections(Connection.ConnectionTypeEnum connectionType, Connection.ChannelTypeEnum channelType) { IDataReader reader = null; try { reader = ExecuteReader("GetConnectionsByConnectionAndChannelType", new object[] { connectionType, channelType }); } catch (Exception ex) { //if (ExceptionPolicy.HandleException(ex, "DataProvider Policy")) throw; } return(reader); }
/// <summary> /// Gets the connections. /// </summary> /// <param name="connectionType">Type of the connection.</param> /// <param name="channelType">Type of the channel.</param> /// <returns></returns> public static List <Connection> GetConnections(Connection.ConnectionTypeEnum connectionType, Connection.ChannelTypeEnum channelType) { List <Connection> connections = null; try { connections = CBO <Connection> .FillCollection( DataAccessProvider.Instance().GetConnections(connectionType, channelType)); } catch (Exception ex) { if (ExceptionPolicy.HandleException(ex, "Integration")) { throw; } } return(connections); }
/// <summary> /// Gets the connections. /// </summary> /// <returns></returns> public abstract IDataReader GetConnections(Connection.ConnectionTypeEnum connectionType, Connection.ChannelTypeEnum channelType);