Beispiel #1
0
        /// <summary>
        /// Constructs an instance of the stream provider.
        /// </summary>
        /// <param name="streamStorage">Storage for the streams</param>
        public BaseStreamProvider2(DSPMediaResourceStorage streamStorage)
        {
            CheckArgumentNull(streamStorage, "streamStorage");

            this.streamStorage = streamStorage;
            if (InstanceCount != 0)
            {
                throw new InvalidOperationException("There are '" + InstanceCount + "' undisposed instance(s).");
            }

            InstanceCount++;
        }
Beispiel #2
0
 /// <summary>
 /// Constructs an instance of the stream provider.
 /// </summary>
 /// <param name="streamStorage">Storage for the streams</param>
 public TypedCustomStreamProvider2(DSPMediaResourceStorage streamStorage)
     : base(streamStorage)
 {
 }