public TestAppService( IRepository <Person> personRepository, IRepository <Animal> animalRepository, ICacheManager cacheManager, IPersonCache personCache, IEmailSender emailSender, ISettingManager settingManager, AppConfigurtaionService appConfigurtaionService, INewsRepository newsrepository, IFreeSqlRepository <News> freeSqlRepository, IFreeSqlRepository <Person> fpersonRepository, IFreeSqlRepository <Animal> fanimalRepository, IRemoteEventBus remoteEventBus ) { _personRepository = personRepository; _animalRepository = animalRepository; _cacheManager = cacheManager; _personCache = personCache; _emailSender = emailSender; _settingManager = settingManager; _appConfigurtaionService = appConfigurtaionService; _newsrepository = newsrepository; _freeSqlRepository = freeSqlRepository; _fpersonRepository = fpersonRepository; _fanimalRepository = fanimalRepository; _remoteEventBus = remoteEventBus; }
public AliyunMNSPublisher(IRemoteEventBus eventBus) { _eventbus = (AliyunMNSEventBus)eventBus; try { _client = new MNSClient(_eventbus.AccessKeyId, _eventbus.AccessKeySecret, _eventbus.Endpoint); } catch (Exception ex) { XTrace.WriteLine($"创建阿里云消息发送器失败,请检查配置文件或阿里云配置是否正确。"); XTrace.WriteException(ex); throw ex; } }
public RabbitMQPublisher(IRemoteEventBus eventbus) { eventBus = eventbus as RabbitMQEventBus; bus = eventBus.Bus; }
public RabbitMQSubscriber(IRemoteEventBus eventbus) { eventBus = eventbus as RabbitMQEventBus; bus = eventBus.Bus; }
public AliyunMNSSubscriber(IRemoteEventBus eventBus) { eventbus = (AliyunMNSEventBus)eventBus; }
public AliyunMNSSubscriber(IRemoteEventBus eventBus) { }
public MessageHub(IRemoteEventBus _remoteEventBus) { remoteEventBus = _remoteEventBus; }
public SignalrPush(IHubContext <MessageHub> _hubContext, IRemoteEventBus _remoteEventBus) { hubContext = _hubContext; remoteEventBus = _remoteEventBus; }
public ValuesController(IRemoteEventBus remoteEventBus, IGrpcConnectionUtility connectionUtility) { _remoteEventBus = remoteEventBus; _connectionUtility = connectionUtility; }
public ActiveMQSubscriber(IRemoteEventBus eventbus) { eventBus = eventbus as ActiveMQEventBus; }
public ActiveMQPublisher(IRemoteEventBus eventbus) { eventBus = eventbus as ActiveMQEventBus; timer = new TimerX(RePublish, null, 1000 * 60, 1000 * 10); }