Skip to content

Commit

Permalink
For consistency, have BeginSave return IAsyncResult. Issue fo-dicom#69
Browse files Browse the repository at this point in the history
  • Loading branch information
anders9ustafsson committed Aug 31, 2015
1 parent ff8875a commit 41b9448
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions DICOM/DicomFile.cs
Expand Up @@ -80,7 +80,7 @@ public void Save(Stream stream)
}
}

public void BeginSave(string fileName, AsyncCallback callback, object state)
public IAsyncResult BeginSave(string fileName, AsyncCallback callback, object state)
{
if (Format == DicomFileFormat.ACRNEMA1 || Format == DicomFileFormat.ACRNEMA2) throw new DicomFileException(this, "Unable to save ACR-NEMA file");

Expand All @@ -100,7 +100,7 @@ public void BeginSave(string fileName, AsyncCallback callback, object state)
EventAsyncResult result = new EventAsyncResult(callback, state);

DicomFileWriter writer = new DicomFileWriter(DicomWriteOptions.Default);
writer.BeginWrite(
return writer.BeginWrite(
target,
FileMetaInfo,
Dataset,
Expand Down

0 comments on commit 41b9448

Please sign in to comment.