예제 #1
0
        public GcmPushChannel(GcmPushChannelSettings channelSettings, PushServiceSettings serviceSettings = null) : base(channelSettings, serviceSettings)
        {
            gcmSettings = channelSettings;

            transport = new GcmMessageTransportAsync();

            transport.MessageResponseReceived += new Action <GcmMessageTransportResponse>(transport_MessageResponseReceived);

            transport.UnhandledException += new Action <GcmNotification, Exception>(transport_UnhandledException);
        }
예제 #2
0
        public GcmPushChannel(GcmPushChannelSettings channelSettings, PushServiceSettings serviceSettings = null)
            : base(channelSettings, serviceSettings)
        {
            gcmSettings = channelSettings;

            transport = new GcmMessageTransportAsync();

            transport.MessageResponseReceived += new Action<GcmMessageTransportResponse>(transport_MessageResponseReceived);

            transport.UnhandledException += new Action<GcmNotification, Exception>(transport_UnhandledException);
        }