Beispiel #1
0
 public EmbedService(int portalId, int tabModuleId)
 {
     tokenCredentials = null;
     embedConfig      = new EmbedConfig();
     tileEmbedConfig  = new TileEmbedConfig();
     powerBISettings  = PowerBISettings.GetPortalPowerBISettings(portalId, tabModuleId);
 }
Beispiel #2
0
 public EmbedService(int portalId, int tabModuleId, string settingsGroupId)
 {
     tokenCredentials = null;
     embedConfig      = new EmbedConfig();
     tileEmbedConfig  = new TileEmbedConfig();
     if (string.IsNullOrEmpty(settingsGroupId))
     {
         powerBISettings = PowerBISettings.GetPortalPowerBISettings(portalId, tabModuleId);
     }
     else
     {
         powerBISettings = SharedSettingsRepository.Instance.GetSettingsByGroupId(settingsGroupId, portalId);
     }
 }
Beispiel #3
0
 public EmbedService(int portalId, int tabModuleId, int settingsId)
 {
     tokenCredentials = null;
     embedConfig      = new EmbedConfig();
     tileEmbedConfig  = new TileEmbedConfig();
     if (settingsId == 0)
     {
         powerBISettings = PowerBISettings.GetPortalPowerBISettings(portalId, tabModuleId);
     }
     else
     {
         powerBISettings = SharedSettingsRepository.Instance.GetSettingsById(settingsId, portalId);
     }
 }