Exemple #1
0
        /* F  L O A D */

        /*----------------------------------------------------------------------------
        *       %%Function: FLoad
        *       %%Qualified: AzLog.AzLogAzureTable.FLoad
        *       %%Contact: rlittle
        *
        *   Load the information about this datasource, but don't actually open it
        *   (doesn't ping the net or validate information)
        *  ----------------------------------------------------------------------------*/
        public bool FLoad(AzLogModel azlm, string sRegRoot, string sName)
        {
            string sKey = String.Format("{0}\\Datasources\\{1}", sRegRoot, sName);

            // save everything we need to be able to recreate ourselves
            Settings ste = new Settings(_rgsteeDatasource, sKey, "ds");

            ste.Load();
            m_sAccountName = ste.SValue("AccountName");
            m_sContainer   = ste.SValue("TableName");
            m_dt           = AzLogDatasourceSupport.TypeFromString(ste.SValue("Type"));
            m_sName        = sName;

            return(true);
        }
Exemple #2
0
 /*----------------------------------------------------------------------------
 *       %%Function: SetSourceType
 *       %%Qualified: AzLog.AzLogFile.SetSourceType
 *       %%Contact: rlittle
 *
 *  ----------------------------------------------------------------------------*/
 public void SetSourceType(DatasourceType dt)
 {
     m_dt = dt;
 }