public static IFPPool Get(string connectionString) { IFPPool myPool; if (connectionString2PoolConnection.Contains(connectionString)) { myPool = (IFPPool)connectionString2PoolConnection[connectionString]; } else { myPool = new FPPoolInstance(connectionString); connectionString2PoolConnection.Add(connectionString, myPool); } return(myPool); }
public static IFPPool Get(byte[] theBytes) { var connectionString = Encoding.Unicode.GetString(theBytes); return(FPPoolInstance.Get(connectionString)); }