public void AmazonAdm_Simple_Test() { var wait = new ManualResetEvent(false); var settings = new AdmPushChannelSettings("client_id", "client_secret"); var adm = new AdmPushChannel(settings); var n = new AdmNotification(); n.Data.Add("Test", "value"); n.RegistrationId = "12345"; adm.SendNotification(n, (sender, response) => wait.Set()); wait.WaitOne(); }
public static void RegisterAdmService(this PushBroker broker, AdmPushChannelSettings channelSettings, PushServiceSettings serviceSettings = null) { broker.RegisterService <AdmNotification>(new AdmPushService(new AdmPushChannelFactory(), channelSettings, serviceSettings)); }
public static void RegisterAdmService(this IPushBroker broker, AdmPushChannelSettings channelSettings, IPushServiceSettings serviceSettings = null) { RegisterAdmService(broker, channelSettings, null, serviceSettings); }