@@ -49,7 +49,17 @@ public static class ConfigurationExtensions
4949
5050 private const string LearningHubUserAPIUserAPIUrl = "LearningHubUserApi:UserApiUrl" ;
5151 private const string UserResearchUrlName = "UserResearchUrl" ;
52-
52+ private const string TableauSectionKey = "TableauDashboards" ;
53+ private const string TableauClientId = "ClientId" ;
54+ private const string TableauClientSecretId = "ClientSecretId" ;
55+ private const string TableauClientSecret = "ClientSecret" ;
56+ private const string TableauUsername = "Username" ;
57+ private const string TableauClientName = "ClientName" ;
58+ private const string TableauSiteUrl = "SiteUrl" ;
59+ private const string TableauWorkbookName = "WorkBookName" ;
60+ private const string TableauViewName = "ViewName" ;
61+ private const string TableauSiteName = "SiteName" ;
62+ private const string TableauAuthApi = "AuthApiPath" ;
5363 public static string GetAppRootPath ( this IConfiguration config )
5464 {
5565 return config [ AppRootPathName ] ! ;
@@ -180,7 +190,7 @@ public static int GetExportQueryRowLimit(this IConfiguration config)
180190 }
181191 public static int GetMaxBulkUploadRowsLimit ( this IConfiguration config )
182192 {
183- int . TryParse ( config [ MaxBulkUploadRowsLimitKey ] , out int limitKey ) ;
193+ int . TryParse ( config [ MaxBulkUploadRowsLimitKey ] , out int limitKey ) ;
184194 return limitKey ;
185195 }
186196
@@ -201,7 +211,7 @@ public static string GetLearningHubAuthenticationClientSecret(this IConfiguratio
201211
202212 public static long GetFreshdeskCreateTicketGroupId ( this IConfiguration config )
203213 {
204- long . TryParse ( config [ FreshdeskCreateTicketGroupId ] , out long ticketGroupId ) ;
214+ long . TryParse ( config [ FreshdeskCreateTicketGroupId ] , out long ticketGroupId ) ;
205215 return ticketGroupId ;
206216 }
207217 public static long GetFreshdeskCreateTicketProductId ( this IConfiguration config )
@@ -218,5 +228,46 @@ public static string GetUserResearchUrl(this IConfiguration config)
218228 {
219229 return config [ UserResearchUrlName ] ! ;
220230 }
231+ public static string GetTableauClientName ( this IConfiguration config )
232+ {
233+ return config [ $ "{ TableauSectionKey } :{ TableauClientName } "] ! ;
234+ }
235+ public static string GetTableauClientId ( this IConfiguration config )
236+ {
237+ return config [ $ "{ TableauSectionKey } :{ TableauClientId } "] ! ;
238+ }
239+ public static string GetTableauClientSecret ( this IConfiguration config )
240+ {
241+ return config [ $ "{ TableauSectionKey } :{ TableauClientSecret } "] ! ;
242+ }
243+ public static string GetTableauClientSecretId ( this IConfiguration config )
244+ {
245+ return config [ $ "{ TableauSectionKey } :{ TableauClientSecretId } "] ! ;
246+ }
247+ public static string GetTableauUser ( this IConfiguration config )
248+ {
249+ return config [ $ "{ TableauSectionKey } :{ TableauUsername } "] ! ;
250+ }
251+ public static string GetTableauSiteUrl ( this IConfiguration config )
252+ {
253+ return config [ $ "{ TableauSectionKey } :{ TableauSiteUrl } "] ! ;
254+ }
255+ public static string GetTableauAuthApi ( this IConfiguration config )
256+ {
257+ return config [ $ "{ TableauSectionKey } :{ TableauAuthApi } "] ! ;
258+ }
259+ public static string GetTableauSiteName ( this IConfiguration config )
260+ {
261+ return config [ $ "{ TableauSectionKey } :{ TableauSiteName } "] ! ;
262+ }
263+ public static string GetTableauWorkbookName ( this IConfiguration config )
264+ {
265+ return config [ $ "{ TableauSectionKey } :{ TableauWorkbookName } "] ! ;
266+ }
267+ public static string GetTableauViewName ( this IConfiguration config )
268+ {
269+ return config [ $ "{ TableauSectionKey } :{ TableauViewName } "] ! ;
270+ }
271+
221272 }
222273}
0 commit comments