public static DataException ToDataException(this AndroidDataException error, AndroidDocumentMetadata documentMetadata = null) { return(new DataException(error.Message, error) { DocumentMetadata = documentMetadata?.ToDocumentMetadata() }); }
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); }