Amazon.CognitoSync.SyncManager.Dataset.FireSyncFailureEvent C# (CSharp) Method

FireSyncFailureEvent() protected method

Fires a Sync Failure event.
protected FireSyncFailureEvent ( Exception exception, AsyncOptions options ) : void
exception System.Exception Exception object which caused the sync Failure
options AsyncOptions AsyncOptions object that controls whether
return void
        protected void FireSyncFailureEvent(Exception exception, AsyncOptions options)
        {
            if (options.ExecuteCallbackOnMainThread)
            {
                // Enqueue the callback so that the Unity main thread dispatcher 
                // can invoke the callback on the main thread.
                UnityRequestQueue.Instance.ExecuteOnMainThread(() =>
                {
                    FireSyncFailureEvent(exception);
                });
            }
            else
            {
                FireSyncFailureEvent(exception);
            }
        }
    }