コード例 #1
0
 static void OnGetChanges(List <ChangeWrapper> changes)
 {
     SetChangesToPublish(changes);
     // Notify new changes and call event on main thread.
     IsGettingChanges = false;
     RefreshChangesEvent.Set();
     EditorApplication.delayCall += () => GetChangesFinished?.Invoke();
 }
コード例 #2
0
        static void OnGetChangesException(Exception e)
        {
            // Notify new changes and call event on main thread.
            IsGettingChanges = false;

            // NOTE this indicates that the server has received multiple
            // GetChanges requests and is cancelling this on in favor of a newer one.
            // No need to log the error in this case.
            if (e is CollabProxyException cpe &&
                cpe.InnermostExceptionMessage.Contains("AbortGetChangesRequestException"))
            {
                return;
            }

            RefreshChangesEvent.Set();
            EditorApplication.delayCall += () => GetChangesFinished?.Invoke();
            LogExceptionDetails(e);
        }