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; }
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; }
public SignalRChatClient(IHubProxyFactory hubProxyFactory, IHubProxyEventManager hubProxyEventManager) : this() { _hubProxyFactory = hubProxyFactory; _hubProxyeventManager = hubProxyEventManager; }
public ChangeAddressNotificationService(IHubProxyFactory notificationHub) { _notificationHub = notificationHub; }
public SignalRTarget() { HubName = "LoggingHub"; MethodName = "Log"; ProxyFactory = new HubProxyFactory(); }
public MsgHubClientProxy(IHubProxyFactory hubProxyFactory, string hubUrl) { this.hubProxyfactory = hubProxyFactory; this.hubUrl = hubUrl; }
public CalculateNewTaxesFromChangedAddressService(IHubProxyFactory notificationHub) { _notificationHub = notificationHub; }