Example #1
0
 public static DataException ToDataException(this AndroidDataException error, AndroidDocumentMetadata documentMetadata = null)
 {
     return(new DataException(error.Message, error)
     {
         DocumentMetadata = documentMetadata?.ToDocumentMetadata()
     });
 }
Example #2
0
            public void OnRemoteOperationCompleted(string operation, AndroidDocumentMetadata document, AndroidDataException error)
            {
                if (RemoteOperationCompleted == null)
                {
                    return;
                }
                var eventArgs = new RemoteOperationCompletedEventArgs
                {
                    Operation        = operation,
                    DocumentMetadata = document.ToDocumentMetadata(),
                    Error            = error?.ToDataException()
                };

                RemoteOperationCompleted(typeof(Data), eventArgs);
            }