コード例 #1
0
            public Service_Daily_1_0()
            {
                //log4net.Util.LogLog.InternalDebugging = true;

                //log.Info("Starting " + "NWISDV");
                //  ODws = new WofService(this.Context);//INFO we can extend this for other service types

                //ODws = new GetDataInformationDailyDB();
                ODws = new GetDataInformationDB();
                ODws.VariableVocabulary = "NCDCDAILY";
                ODws.SiteVocabulary     = "NCDCDAILY";
                QueryLoggger            = new Logging(ODws.SiteVocabulary);

                // configure
                ConnectionStringSettings oddb = ConfigurationManager.ConnectionStrings["ODDB"];

                ODws.DataInfoConnection = oddb.ConnectionString;
                ODws.VariablesTableName = "variables";
                ODws.SitesTableName     = "daily_sites";
                ODws.SeriesTableName    = "daily_SeriesCatalog";

                // configured in using statement above
                dvSvc = new DataTimeSeriesWofSrv();
                ((DataTimeSeriesWofSrv)dvSvc).Token = ConfigurationManager.AppSettings["NCDC_Token"];


                //    #endregion
            }
コード例 #2
0
            public Service_Rest_1_0()
            {
                ODws = new GetDataInformationDB();
                ODws.VariableVocabulary = "NCDCISH";
                ODws.SiteVocabulary     = "NCDCISH";
                QueryLoggger            = new Logging(ODws.SiteVocabulary);

                // configure
                ConnectionStringSettings    oddb       = ConfigurationManager.ConnectionStrings["ODDB"];
                Dictionary <String, object> parameters = new Dictionary <string, object>();

                ODws.Parameters = parameters;


                // configured in using statement above
                dvSvc = new DataTimeSeriesWofSrv();

                //    #endregion
            }
コード例 #3
0
            public Service_ISH_1_0()
            {
                ODws = new GetDataInformationDB();
                ODws.VariableVocabulary = "NCDCISH";
                ODws.SiteVocabulary     = "NCDCISH";
                QueryLoggger            = new Logging(ODws.SiteVocabulary);

                // configure
                ConnectionStringSettings oddb = ConfigurationManager.ConnectionStrings["ODDB"];

                ODws.DataInfoConnection = oddb.ConnectionString;
                ODws.VariablesTableName = "ish_variables";
                ODws.SitesTableName     = "ish_sites";
                ODws.SeriesTableName    = "ish_SeriesCatalog";

                // configured in using statement above
                dvSvc = new DataTimeSeriesWofSrv();
                ((DataTimeSeriesWofSrv)dvSvc).Token = ConfigurationManager.AppSettings["NCDC_Token"];

                //    #endregion
            }