Esempio n. 1
0
        public TelegramController(
            ITelegramBotClient bot,
            IHubProxyFactory proxyFactory,
            string url,
            string hubName,
            ICache <long, IHubProxy> cache)
        {
            if (bot == null)
            {
                throw new ArgumentNullException("proxyFactory");
            }
            if (proxyFactory == null)
            {
                throw new ArgumentNullException("proxyFactory");
            }
            if (String.IsNullOrWhiteSpace(url))
            {
                throw new ArgumentNullException("url");
            }
            if (String.IsNullOrWhiteSpace(hubName))
            {
                throw new ArgumentNullException("hubName");
            }
            if (cache == null)
            {
                throw new ArgumentNullException("cache");
            }

            _bot          = bot;
            _proxyFactory = proxyFactory;
            _url          = url;
            _hubName      = hubName;
            _cache        = cache;
        }
 public ChangeHomeAddressService(
     IPeopleRepository peopleRepository,
     MassTransit.IBus bus,
     IHubProxyFactory notificationHub)
 {
     _peopleRepository = peopleRepository;
     _bus             = bus;
     _notificationHub = notificationHub;
 }
Esempio n. 3
0
        public EventProxy(IHubProxyFactory hubProxyFactory, ISubscriptionThrottleHandler throttleHandler, ISubscriptionStore subscriptionStore, ITypeFinder typeFinder)
        {
            this.typeFinder   = typeFinder;
            subscriptionQueue = new List <Subscription>();

            this.hubProxyFactory = hubProxyFactory;

            this.throttleHandler = throttleHandler;
            throttleHandler.Init(() => SendQueuedSubscriptions());
            this.subscriptionStore = subscriptionStore;
        }
Esempio n. 4
0
 public SignalRChatClient(IHubProxyFactory hubProxyFactory, IHubProxyEventManager hubProxyEventManager) : this()
 {
     _hubProxyFactory      = hubProxyFactory;
     _hubProxyeventManager = hubProxyEventManager;
 }
Esempio n. 5
0
 public ChangeAddressNotificationService(IHubProxyFactory notificationHub)
 {
     _notificationHub = notificationHub;
 }
Esempio n. 6
0
 public SignalRTarget()
 {
     HubName      = "LoggingHub";
     MethodName   = "Log";
     ProxyFactory = new HubProxyFactory();
 }
Esempio n. 7
0
 public MsgHubClientProxy(IHubProxyFactory hubProxyFactory, string hubUrl)
 {
     this.hubProxyfactory = hubProxyFactory;
     this.hubUrl          = hubUrl;
 }
 public CalculateNewTaxesFromChangedAddressService(IHubProxyFactory notificationHub)
 {
     _notificationHub = notificationHub;
 }