BuildIt.Bot.Client.Impl.UWP.BotClientApplicationBase.InitNotificationsAsync C# (CSharp) Method

InitNotificationsAsync() protected method

protected InitNotificationsAsync ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task
        protected async Task InitNotificationsAsync()
        {
            // Get a channel URI from WNS.
            var channel = await PushNotificationChannelManager.CreatePushNotificationChannelForApplicationAsync();
            channel.PushNotificationReceived += OnPushNotificationReceived;

            await RegisterForPushNotification(channel.Uri);
        }