EDMI: final changes to Client

This commit is contained in:
Jonathan Jenne
2021-06-29 11:22:19 +02:00
parent 54c96b0b1f
commit 5658c233ee
6 changed files with 19 additions and 12 deletions

View File

@@ -104,7 +104,7 @@ Public Class Client
''' <returns>The ObjectId of the newly generated filesystem object</returns>
''' <exception cref="FileNotFoundException">When local filepath was not found</exception>
''' <exception cref="ApplicationException">When there was a error in the Service</exception>
Public Async Function NewFileAsync(pFilePath As String, pWho As String, pWhen As Date, pObjectStoreType As String, pBusinessEntity As String, ImportOptions As ImportFileOptions) As Task(Of Long)
Public Async Function NewFileAsync(pFilePath As String, pWho As String, pWhen As Date, pObjectStoreType As String, pBusinessEntity As String, ImportOptions As ImportFileOptions) As Task(Of FileMeta)
Const oKindType = "DOC"
Try
@@ -156,7 +156,10 @@ Public Class Client
End Using
End Using
Return oObjectIdResponse.ObjectId
Return New FileMeta With {
.ObjectId = oObjectIdResponse.ObjectId,
.FilePath = oFilePathResponse.FileObjectPath
}
Catch ex As Exception
_logger.Error(ex)
Return Nothing

View File

@@ -0,0 +1,4 @@
Public Class FileMeta
Public FilePath As String
Public ObjectId As String
End Class

View File

@@ -81,6 +81,7 @@
</Compile>
<Compile Include="Client.vb" />
<Compile Include="DataWithFallback.vb" />
<Compile Include="Client\FileMeta.vb" />
<Compile Include="My Project\AssemblyInfo.vb" />
<Compile Include="My Project\Application.Designer.vb">
<AutoGen>True</AutoGen>