/// <summary> /// Initializes a new instance of the <see cref="IngestManifestAssetCollection"/> class. /// </summary> /// <param name="cloudMediaContext">The <seealso cref="CloudMediaContext"/> instance.</param> /// <param name="parentIngestManifest">parent manifest if collection associated with manifest </param> internal IngestManifestAssetCollection(MediaContextBase cloudMediaContext, IIngestManifest parentIngestManifest) : base(cloudMediaContext) { _dataContext = MediaContext.MediaServicesClassFactory.CreateDataServiceContext(); _parentIngestManifest = parentIngestManifest; _query = new Lazy <IQueryable <IIngestManifestAsset> >(() => _dataContext.CreateQuery <IIngestManifestAsset, IngestManifestAssetData>(EntitySet)); }