private void CloudManager_OnSessionError(object sender, SessionErrorEventArgs args)
        {
            isErrorActive = true;
            Debug.Log(args.ErrorMessage);

            QueueOnUpdate(new Action(() => this.feedbackBox.text = string.Format("Error: {0}", args.ErrorMessage)));
        }
Beispiel #2
0
 private void OnSchedulerError(
     object scheduler, SessionErrorEventArgs args)
 {
     Console.WriteLine(
         "Scheduler reported error for session {0}: {1}",
         args.Session, args.Reason);
 }
Beispiel #3
0
        private void CloudManager_Error(object sender, SessionErrorEventArgs args)
        {
            isErrorActive = true;
            Debug.Log(args.ErrorMessage);

            UnityDispatcher.InvokeOnAppThread(() => this.feedbackBox.text = string.Format("Error: {0}", args.ErrorMessage));
        }
Beispiel #4
0
        private void SpatialAnchorsSession_Error(object sender, SessionErrorEventArgs e)
        {
            string errorMessage = e.ErrorMessage;

            this.ShowLogMessage(errorMessage, SubView.ErrorView);
            Console.WriteLine("Error Code : " + e.ErrorCode + ", Message : " + e.ErrorMessage);

            this.OnSessionError?.Invoke(sender, e);
        }
        private void SpatialAnchorsSession_Error(object sender, SessionErrorEventArgs e)
        {
            if (e == null || e.Args == null)
            {
                return;
            }

            string message = $"{e.Args.ErrorCode}: {e.Args.ErrorMessage}";

            System.Diagnostics.Debug.WriteLine(message);

            this.OnSessionError?.Invoke(sender, e);
        }
        private void SpatialAnchorsSession_Error(object sender, SessionErrorEventArgs e)
        {
            SessionErrorEvent eventArgs = e?.Args;

            if (eventArgs == null)
            {
                Debug.WriteLine("Azure Spatial Anchors reported an unspecified error.");
                return;
            }

            string message = $"{eventArgs.ErrorCode}: {eventArgs.ErrorMessage}";

            Debug.WriteLine(message);

            this.OnSessionError?.Invoke(sender, eventArgs);
        }
Beispiel #7
0
 private void _cloudAnchorSession_Error(object sender, SessionErrorEventArgs args)
 {
     SessionFeedback = args.ErrorMessage;
 }
Beispiel #8
0
 /// <summary>
 /// Handles error delegate calls for the Azure Spatial Anchor session.
 /// </summary>
 private void CloudSpatialAnchorSession_Error(object sender, SessionErrorEventArgs args)
 {
     Debug.LogError($"Azure Spatial Anchor error: {args.ErrorMessage}");
 }
Beispiel #9
0
 private void OnSessionError(object sender, SessionErrorEventArgs args)
 {
     Debug.LogError(args.ErrorMessage);
 }
Beispiel #10
0
 private void CloudSpatialAnchorSession_Error(object sender, SessionErrorEventArgs args)
 {
     Debug.LogError("ASA Error: " + args.ErrorMessage);
 }
Beispiel #11
0
 void OnCloudSessionError(object sender, SessionErrorEventArgs args)
 {
     Debug.Log($"On Cloud Session Error: {args.ErrorMessage}");
 }
Beispiel #12
0
 private void CloudSpatialAnchorSession_Error(object sender, SessionErrorEventArgs args)
 {
     Log($"ASA Error: {args.ErrorMessage}", Color.red);
 }
 private void SpatialAnchorsSession_Error(object sender, SessionErrorEventArgs e)
 {
     Log.Debug("ASAError: ", e.P0.ErrorMessage);
 }
Beispiel #14
0
 private void CloudManager_Error(object sender, SessionErrorEventArgs args)
 {
     throw new NotImplementedException();
 }
Beispiel #15
0
 private void CloudManager_OnSessionError(object sender, SessionErrorEventArgs args)
 {
     this.isErrorActive    = true;
     this.feedbackBox.text = string.Format("Error: {0}", args.ErrorMessage);
     Debug.Log(args.ErrorMessage);
 }
Beispiel #16
0
 /// <summary>
 /// Called when the <see cref="Session"/> <see cref="CloudSpatialAnchorSession.Error">Error</see> event is fired.
 /// </summary>
 /// <param name="sender">
 /// The <see cref="Session"/>.
 /// </param>
 /// <param name="args">
 /// The event data.
 /// </param>
 protected virtual void OnError(object sender, SessionErrorEventArgs args)
 {
     Error?.Invoke(this, args);
 }
Beispiel #17
0
 private void CloudSpatialAnchorSession_Error(object sender, SessionErrorEventArgs args)
 {
     OnSessionError?.Invoke(sender, args);
 }
 private void CloudManager_Error(object sender, SessionErrorEventArgs args)
 {
     isErrorActive = true;
     Debug.Log(args.ErrorMessage);
 }
Beispiel #19
0
 /// <summary>
 /// This method is called when the cloud manager detects an error.
 /// Usually it doesnt works as expected. Rely on the LogDebug instead and setup the loglevel to Warning or Error.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="args">contains the error msg</param>
 private void CloudManager_Error(object sender, SessionErrorEventArgs args)
 {
     logger.Log("An Error occured: " + args.ErrorMessage, TextState.ERROR);
 }
Beispiel #20
0
 private void CloudManager_OnSessionError(object sender, SessionErrorEventArgs args)
 {
     Debug.Log(args.ErrorMessage);
 }