Exemple #1
0
        public Service(Boolean DBUsage)
        {
            Connector connector;

            if (DBUsage)
            {
                connector = new DBConnector();
                resource  = connector.Create();
            }
            else
            {
                connector = new FileConnector();
                resource  = connector.Create();
            }
        }
Exemple #2
0
        public Service(bool useDB)
        {
            Connector connector;

            if (useDB)
            {
                connector = new DBConnector();
                resource  = connector.Create();
            }
            else
            {
                connector = new FileConnector();
                resource  = connector.Create();
            }
        }