Beispiel #1
0
        public MonitoringWorker(AzureMediaService mediaService, List <AzureDataConfig> connectionList)
        {
            connectionList.ForEach(connection =>
                                   Trace.TraceInformation("database:{0}  user:{1}, InitialCatalog:{2}", connection.AzureServer, connection.UserName, connection.InitialCatalog)
                                   );
            MediaService    = mediaService;
            _connectionList = connectionList;
            _cache          = MdCache.Instance;

            Account = new MediaService
            {
                Name       = mediaService.Config.AccountName,
                Id         = mediaService.Config.Id,
                Datacenter = mediaService.Config?.MetaData.Location,
                Origins    = EntityFactory.BuildOriginListFromStreamingEndpoints(mediaService.CloudContext.StreamingEndpoints)
            };
        }
Beispiel #2
0
 public MonitoringWorker(AzureMediaService mediaService) :
     this(mediaService, App.Config.Content.ContentProviders[0].MediaServicesSets[0].DataStorageConnections)
 {
 }