コード例 #1
0
        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);
            }
        }
コード例 #2
0
        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);
            }
        }