Exemple #1
0
        public Program(IDrNuRtmpStreamFactory drNuRtmpStreamFactory, IFileWrapper fileWrapper, string title, string genre, string description, Uri rtmpUri)
        {
            if (drNuRtmpStreamFactory == null)
            {
                throw new ArgumentNullException("drNuRtmpStreamFactory");
            }
            if (fileWrapper == null)
            {
                throw new ArgumentNullException("fileWrapper");
            }
            if (title == null)
            {
                throw new ArgumentNullException("title");
            }
            if (genre == null)
            {
                throw new ArgumentNullException("genre");
            }
            if (description == null)
            {
                throw new ArgumentNullException("description");
            }
            if (rtmpUri == null)
            {
                throw new ArgumentNullException("rtmpUri");
            }

            _drNuRtmpStreamFactory = drNuRtmpStreamFactory;
            _fileWrapper           = fileWrapper;
            Title       = title;
            Genre       = genre;
            Description = description;
            RtmpUri     = rtmpUri;
        }
Exemple #2
0
        public Program(IDrNuRtmpStreamFactory drNuRtmpStreamFactory, IFileWrapper fileWrapper, string title, string genre, string description, Uri rtmpUri)
        {
            if (drNuRtmpStreamFactory == null) throw new ArgumentNullException("drNuRtmpStreamFactory");
            if (fileWrapper == null) throw new ArgumentNullException("fileWrapper");
            if (title == null) throw new ArgumentNullException("title");
            if (genre == null) throw new ArgumentNullException("genre");
            if (description == null) throw new ArgumentNullException("description");
            if (rtmpUri == null) throw new ArgumentNullException("rtmpUri");

            _drNuRtmpStreamFactory = drNuRtmpStreamFactory;
            _fileWrapper = fileWrapper;
            Title = title;
            Genre = genre;
            Description = description;
            RtmpUri = rtmpUri;
        }