Пример #1
0
 public StandardDataLogProcessor(Web3 web3, IStandardDataRegistry standardDataRegistry,
                                 IEnumerable <IStandardDataProcessingService <T> > dataChangedServices
                                 )
 {
     Web3 = web3;
     StandardDataRegistry = standardDataRegistry;
     DataChangedServices  = dataChangedServices;
 }
        public static WorkDataLogProcessor Create(Web3 web3,
                                                  IStandardDataRegistry dataRegistry,
                                                  IIpfsImageQueue imageQueue,
                                                  WorkRepository workRepository,
                                                  WorkSearchService workSearchService,
                                                  MusicRecordingService musicRecordingService
                                                  )
        {
            var services = new List <IStandardDataProcessingService <MusicRecordingDTO> >();

            services.Add(workRepository);
            services.Add(workSearchService);
            services.Add(new WorkIpfsImagesStandardDataProcessingService(imageQueue));
            services.Add(musicRecordingService);

            return(new WorkDataLogProcessor(web3, dataRegistry, services));
        }
 public WorkDataLogProcessor(Web3 web3, IStandardDataRegistry standardDataRegistry, IEnumerable <IStandardDataProcessingService <MusicRecordingDTO> > dataChangedServices) : base(web3, standardDataRegistry, dataChangedServices)
 {
 }