コード例 #1
0
ファイル: GcmPushChannel.cs プロジェクト: vpdsouza/PushSharp
        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
ファイル: GcmPushChannel.cs プロジェクト: rture/PushSharp
        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);
        }