internal ContentKeyAuthorizationPolicyOptionCollection(MediaContextBase context)
            : base(context)
        {
            MediaServicesClassFactory factory = this.MediaContext.MediaServicesClassFactory;

            this.Queryable = factory.CreateDataServiceContext().CreateQuery <IContentKeyAuthorizationPolicyOption, ContentKeyAuthorizationPolicyOptionData>(ContentKeyAuthorizationPolicyOptionSet);
        }
        internal AssetDeliveryPolicyCollection(MediaContextBase context)
            : base(context)
        {
            MediaServicesClassFactory factory = this.MediaContext.MediaServicesClassFactory;

            this.Queryable = factory.CreateDataServiceContext().CreateQuery <IAssetDeliveryPolicy, AssetDeliveryPolicyData>(DeliveryPolicySet);
        }
        /// <summary>
        /// Initializes a new instance of the <see cref="EncodingReservedUnitCollection"/> class.
        /// </summary>
        /// <param name="mediaContext">The media context.</param>
        internal EncodingReservedUnitCollection(MediaContextBase mediaContext)
            : base(mediaContext)
        {
            MediaContext = mediaContext;
            MediaServicesClassFactory factory = MediaContext.MediaServicesClassFactory;

            this.Queryable = factory.CreateDataServiceContext().CreateQuery <IEncodingReservedUnit, EncodingReservedUnitData>(EncodingReservedUnitSet);
        }
Ejemplo n.º 4
0
        /// <summary>
        /// Initializes a new instance of the <see cref="MediaProcessorBaseCollection"/> class.
        /// </summary>
        /// <param name="mediaContext">The media context.</param>
        internal StorageAccountBaseCollection(MediaContextBase mediaContext)
            : base(mediaContext)
        {
            MediaContext = mediaContext;
            MediaServicesClassFactory factory = MediaContext.MediaServicesClassFactory;

            Queryable = factory.CreateDataServiceContext().CreateQuery <IStorageAccount, StorageAccountData>(EntitySet);
        }