Ejemplo n.º 1
0
    private async void CloudSpatialAnchorSession_TokenRequired(object sender, TokenRequiredEventArgs args)
    {
        CloudSpatialAnchorSessionDeferral deferral = args.GetDeferral();

        args.AccessToken = await GenerateToken();

        deferral.Complete();
    }
Ejemplo n.º 2
0
        private async void Session_TokenRequired(object sender, TokenRequiredEventArgs args)
        {
            // Get the deferral
            CloudSpatialAnchorSessionDeferral deferral = args.GetDeferral();

            // Call overridable method to get the token and store it
            args.AuthenticationToken = await GetAADTokenAsync();

            // Complete the deferral
            deferral.Complete();
        }
Ejemplo n.º 3
0
 private void _cloudAnchorSession_TokenRequired(object sender, TokenRequiredEventArgs args)
 {
     SessionFeedback = "Token required for cloud anchors";
 }
 private async void SpatialAnchorsSession_TokenRequired(object sender, TokenRequiredEventArgs e)
 {
     var token = await this.spatialAnchorsSession.GetAccessTokenWithAccountKeyAsync(Constants.SpatialAnchorsAccountKey).GetAsync();
 }