/// <summary> /// Register a particular channelUri /// </summary> /// <param name="channelUri">The channelUri to register</param> /// <param name="tags">The tags to register to receive notifications from</param> /// <returns>Task that completes when registration is complete</returns> public Task RegisterNativeAsync(string channelUri, IEnumerable<string> tags) { if (string.IsNullOrWhiteSpace(channelUri)) { throw new ArgumentNullException("channelUri"); } var registration = new MpnsRegistration(channelUri, tags); return this.RegistrationManager.RegisterAsync(registration); }
/// <summary> /// Register a particular channelUri /// </summary> /// <param name="channelUri">The channelUri to register</param> /// <param name="tags">The tags to register to receive notifications from</param> /// <returns>Task that completes when registration is complete</returns> public Task RegisterNativeAsync(string channelUri, IEnumerable <string> tags) { if (string.IsNullOrWhiteSpace(channelUri)) { throw new ArgumentNullException("channelUri"); } var registration = new MpnsRegistration(channelUri, tags); return(this.RegistrationManager.RegisterAsync(registration)); }