示例#1
0
 public EmbedService(int portalId, int tabModuleId)
 {
     tokenCredentials = null;
     embedConfig      = new EmbedConfig();
     tileEmbedConfig  = new TileEmbedConfig();
     powerBISettings  = PowerBISettings.GetPortalPowerBISettings(portalId, tabModuleId);
 }
示例#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);
     }
 }
示例#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);
     }
 }