Exemple #1
0
 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;
 }
Exemple #4
0
 public RabbitMQSubscriber(IRemoteEventBus eventbus)
 {
     eventBus = eventbus as RabbitMQEventBus;
     bus      = eventBus.Bus;
 }
Exemple #5
0
 public AliyunMNSSubscriber(IRemoteEventBus eventBus)
 {
     eventbus = (AliyunMNSEventBus)eventBus;
 }
 public AliyunMNSSubscriber(IRemoteEventBus eventBus)
 {
 }
Exemple #7
0
 public MessageHub(IRemoteEventBus _remoteEventBus)
 {
     remoteEventBus = _remoteEventBus;
 }
Exemple #8
0
 public SignalrPush(IHubContext <MessageHub> _hubContext, IRemoteEventBus _remoteEventBus)
 {
     hubContext     = _hubContext;
     remoteEventBus = _remoteEventBus;
 }
Exemple #9
0
 public ValuesController(IRemoteEventBus remoteEventBus, IGrpcConnectionUtility connectionUtility)
 {
     _remoteEventBus    = remoteEventBus;
     _connectionUtility = connectionUtility;
 }
 public ActiveMQSubscriber(IRemoteEventBus eventbus)
 {
     eventBus = eventbus as ActiveMQEventBus;
 }
Exemple #11
0
 public ActiveMQPublisher(IRemoteEventBus eventbus)
 {
     eventBus = eventbus as ActiveMQEventBus;
     timer    = new TimerX(RePublish, null, 1000 * 60, 1000 * 10);
 }