public Stream Open(int documentDescriptionId, string variant = "P", int version = -1) { var request = new GetDocumentContentMessage(documentDescriptionId, CreateEphorteIdentity(), variant, version); using (var documentsService = CreateServiceClient()) { var response = documentsService.GetDocumentContentBase(request); return(response.Content); } }
public async Task <Stream> OpenAsync(int documentDescriptionId, string variant, int version) { var request = new GetDocumentContentMessage(documentDescriptionId, CreateEphorteIdentity(), variant, version); using (var documentsService = CreateServiceClient()) { var response = await documentsService.GetDocumentContentBaseAsync(request); return(response.Content); } }