예제 #1
0
 public ReceiveJsonAppService(IRepository <AirshowData, long> repository,
                              IRepository <ReceiveJson, long> _rcrepository,
                              IRepository <CommAudioFileName, long> _crepository,
                              IRepository <AudioCheckIn> _checkinRepository,
                              IRepository <AudioGate> _gateRepository,
                              IRepository <AudioReason> _reasonRepository,
                              IRepository <TopPwrPort> topPwrRepository,
                              IRepository <PlayAudioLog, long> _logRepository,
                              IRepository <AudioDevice> deviceRepository,
                              ICommAudioTempleAppService _play,
                              ActiveMQListener listener,
                              IAppFolders appFolders,
                              IRepository <AudioTurnPlate> _audioTurnPlateRepository)
 {
     this.repository                = repository;
     this._crepository              = _crepository;
     this._rcrepository             = _rcrepository;
     this._audioTurnPlateRepository = _audioTurnPlateRepository;
     this._checkinRepository        = _checkinRepository;
     this._gateRepository           = _gateRepository;
     this._reasonRepository         = _reasonRepository;
     this._logRepository            = _logRepository;
     this._play            = _play;
     this.listener         = listener;
     this.appFolders       = appFolders;
     this.topPwrRepository = topPwrRepository;
     this.deviceRepository = deviceRepository;
 }
 public ActiveMQListener(IRepository <ReceiveJson, long> detailRepository,
                         IRepository <AirshowData, long> airshowDataRepository,
                         IPlayAudioHub hub,
                         IWavCombine _wavCombine,
                         ISqlExecuter sqlExecuter,
                         IRepository <PlayAudioLog, long> _logRepository,
                         IRepository <CommAudioFileName, long> _commAudioFileNameRepository,
                         ICommAudioTempleAppService _play,
                         ILogger logger
                         )
 {
     this.detailRepository             = detailRepository;
     this.airshowDataRepository        = airshowDataRepository;
     this._commAudioFileNameRepository = _commAudioFileNameRepository;
     this.logger         = logger;
     this._play          = _play;
     this.hub            = hub;
     UUID                = Guid.NewGuid().ToString();
     this._logRepository = _logRepository;
     this._wavCombine    = _wavCombine;
     this._wavCombine.PlayStateCallback += _wavCombine_PlayStateCallback;
     this.sqlExecuter = sqlExecuter;
 }