예제 #1
0
        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);
        }
예제 #2
0
        public static IFPPool Get(byte[] theBytes)
        {
            var connectionString = Encoding.Unicode.GetString(theBytes);

            return(FPPoolInstance.Get(connectionString));
        }