From 7bf03b303b798ce613cd1be01d9a81b2c2d84740 Mon Sep 17 00:00:00 2001 From: Jonathan Jenne Date: Tue, 28 Apr 2020 11:11:54 +0200 Subject: [PATCH] EDMI: clean up service --- Service.EDMIService/EDMIService.vb | 2 +- Service.EDMIService/IEDMIService.vb | 20 -------------------- 2 files changed, 1 insertion(+), 21 deletions(-) diff --git a/Service.EDMIService/EDMIService.vb b/Service.EDMIService/EDMIService.vb index 01e344a8..ed4ce628 100644 --- a/Service.EDMIService/EDMIService.vb +++ b/Service.EDMIService/EDMIService.vb @@ -239,8 +239,8 @@ Public Class EDMIService Using oSource As FileStream = IO.File.OpenRead(oFullPath) oSource.CopyTo(oDestination) End Using - oDestination.Seek(0, SeekOrigin.Begin) + Dim oMessage As New Messages.DocumentStreamResponse() With { .FileName = oFileInfo.Name, .FileContents = oDestination diff --git a/Service.EDMIService/IEDMIService.vb b/Service.EDMIService/IEDMIService.vb index cef612e8..ee963c52 100644 --- a/Service.EDMIService/IEDMIService.vb +++ b/Service.EDMIService/IEDMIService.vb @@ -27,26 +27,6 @@ Interface IEDMIService Function ExecuteNonQuery(SQL As String) As NonQueryResult #End Region -#Region "Document (with FileContainer)" - ' - 'Function NewFile(FileName As String, Contents As Byte()) As DocumentResultOld - - ' - 'Function UpdateFile(DocObject As DocumentObject, Contents As Byte()) As DocumentResultOld - - ' - 'Function GetFile(DocObject As DocumentObject) As DocumentResultOld - - ' - 'Function DeleteFile(DocObject As DocumentObject) As Boolean - - ' - 'Function GetDocumentByDocumentId(DocumentId As Int64) As DocumentResultOld - - ' - 'Function GetDocumentByContainerId(ContainerId As String) As DocumentResultOld -#End Region - #Region "Document (New)" Function ImportFile(Data As Messages.DocumentImportRequest) As Messages.DocumentImportResponse