Hey
I don’t get my server up, when I try to use complex types.
All the code is on server side.
I have a Contract defined as Interface like this:
Namespace Contracts
Public Interface ITestContract(Of T)
Function WhereBySearchTerm(ListOfSearchTerm As List(Of String)) As List(Of T)
End Interface
End Namespace
And this Interface, I try to publish like so:
<Service, ServiceRequiresLogin>
Public Class CustomerTest
Inherits Service
Implements ITestContract(Of CustomerSearchViewDTO)
<ServiceMethod>
Public Function WhereBySearchTerm(ListOfSearchTerm As List(Of String)) As List(Of CustomerSearchViewDTO) Implements ITestContract(Of CustomerSearchViewDTO).WhereBySearchTerm End Function End Class
But each time I run the project, I get the following error:
Cannot publish method CustomerTest.WhereBySearchTerm
Argument type not supported: System.Collections.Generic.List`1[[System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]"
Could you please tell me, what I am doing wrong…
THX in advance