Beispiel #1
0
        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();
        }
Beispiel #2
0
 public static void RegisterAdmService(this PushBroker broker, AdmPushChannelSettings channelSettings, PushServiceSettings serviceSettings = null)
 {
     broker.RegisterService <AdmNotification>(new AdmPushService(new AdmPushChannelFactory(), channelSettings, serviceSettings));
 }
Beispiel #3
0
 public static void RegisterAdmService(this IPushBroker broker, AdmPushChannelSettings channelSettings, IPushServiceSettings serviceSettings = null)
 {
     RegisterAdmService(broker, channelSettings, null, serviceSettings);
 }