コード例 #1
0
ファイル: UriDatasource.cs プロジェクト: dfberry/WAZDashboard
 /// <summary>
 /// Initializes a new instance of the <see cref="UriDatasource" /> class.
 /// </summary>
 /// <param name="http">DashboardHttp object containing request</param>
 /// <param name="httpContext">Http web context or null if not a web request</param>
 public UriDatasource(DashboardHttp http, HttpContextBase httpContext)
 {
     this.configuration = new FeedConfiguration(httpContext);
     this.configurationContext = httpContext;
     this.httpRequest = http;
     this.GetConfigSettings();
 }
コード例 #2
0
ファイル: UriDatasource.cs プロジェクト: dfberry/WAZDashboard
        /// <summary>
        /// Get all config settings. Sets 
        /// dashboardURI. Creates new DashboardHttp
        /// for httpRequest. Calls BuildHttpGet. All
        /// of these can be overwritten/called again
        /// later.
        /// </summary>
        private void GetConfigSettings()
        {
            this.configuration = new FeedConfiguration(this.configurationContext);

            // need an http requester - this can always be overwritten
            this.dashboardURI = new Uri(this.configuration.AzureUri);
            this.httpRequest = new DashboardHttp(this.dashboardURI);
        }