internal NotificationHubClient BindForNotificationHubClient(NotificationHubAttribute attribute) { string resolvedConnectionString = ResolveConnectionString(attribute.ConnectionStringSetting); string resolvedHubName = ResolveHubName(attribute.HubName); INotificationHubClientService service = GetService(resolvedConnectionString, resolvedHubName, attribute.EnableTestSend); return(service.GetNotificationHubClient()); }
public NotificationHubClient Convert(NotificationHubAttribute attribute) { if (attribute == null) { throw new ArgumentNullException(nameof(attribute)); } string resolvedConnectionString = _config.ResolveConnectionString(attribute.ConnectionStringSetting); string resolvedHubName = _config.ResolveHubName(attribute.HubName); INotificationHubClientService service = _config.GetService(resolvedConnectionString, resolvedHubName, attribute.EnableTestSend); return(service.GetNotificationHubClient()); }