public DefaultHuffmanEncodingService(IFileSystemService fileSystemService, IPlatformService platform, IStreamBuilder streamBuilder)
        {
            Guard.IsNotNull(fileSystemService, nameof(fileSystemService));
            Guard.IsNotNull(platform, nameof(platform));
            Guard.IsNotNull(streamBuilder, nameof(streamBuilder));

            this.fileSystemService = fileSystemService;
            this.platform          = platform;
            this.streamBuilder     = streamBuilder;
        }
예제 #2
0
 /// <summary>
 /// Repository for ingest data.
 /// </summary>
 /// <param name="context"></param>
 public IngestRepository(IngestContext context, IImageStorage imageStorage,
                         IMediaStorage mediaStorage, IStreamBuilder streamBuilder,
                         IObjectBus <IEnumerable <ServiceBus.Types.Clip> > clipBus,
                         IObjectBus <ServiceBus.Types.Editor.Podcast> podcastBus)
 {
     DbContext     = context;
     ImageStorage  = imageStorage;
     MediaStorage  = mediaStorage;
     StreamBuilder = streamBuilder;
     ClipBus       = clipBus;
     PodcastBus    = podcastBus;
 }
예제 #3
0
        /// <summary>
        /// Instantiates a new EditorRepository.
        /// </summary>
        public EditorRepository(IMediaStorage mediaStorage, EditorContext editorDb,
                                IStreamBuilder streamBuilder, IObjectBus <IEnumerable <Vocalia.ServiceBus.Types.Clip> > recordBus,
                                IObjectBus <Vocalia.ServiceBus.Types.Editor.Podcast> editorPodcastBus,
                                IObjectBus <Vocalia.ServiceBus.Types.Publishing.Timeline> publishTimelineBus,
                                IUserFacade userFacade)
        {
            DbContext     = editorDb;
            MediaStorage  = mediaStorage;
            StreamBuilder = streamBuilder;
            UserFacade    = userFacade;
            TimelineBus   = publishTimelineBus;

            //Initializes service bus objects for handling I/O between services.
            _ = recordBus;
            _ = editorPodcastBus;
        }
예제 #4
0
        public PublishingRepository(PublishContext ingestContext, IMediaStorage mediaStorage,
                                    IStreamBuilder streamBuilder, IConfiguration config,
                                    IObjectBus <Vocalia.ServiceBus.Types.Publishing.Podcast> podcastBus,
                                    IObjectBus <Vocalia.ServiceBus.Types.Podcast.Podcast> listenBus,
                                    IObjectBus <Timeline> timelineBus
                                    )
        {
            DbContext     = ingestContext;
            MediaStorage  = mediaStorage;
            StreamBuilder = streamBuilder;
            ListenBus     = listenBus;
            Config        = config;

            _ = podcastBus;
            _ = timelineBus;
        }
예제 #5
0
 public void InitTests()
 {
     streamBuilder = new StringStream();
 }
예제 #6
0
 public Reader()
 {
     sb = new StringStream();
 }
예제 #7
0
 public void InitTests()
 {
     sb = new StringStream();
 }