Azure Service Fabric Remoting with a common parameter

I am sending a generic parameter in my Application Fabric application when the service is uninstalled.

My interface is as follows:

public interface IMyServiceRemoting : IService
{
   Task<String> GetMessageFromServer<T>(T hint)// a hint could be of byte[] or string or any object
}

While i get

System.ArgumentException: "Service Interface" ServiceRemoting.Interfaces.IMyServiceRemoting`1 [[System.Object, mscorlib, version = 4.0.0.0, Culture = neutral, publicKeyToken = b77a5c561934e089]]] 'uses a common one. The common interface cannot be removed .

I can’t understand why I can’t use generics. Please help with the correct explanation.

+4
source share
2 answers

. , . . , , , WCF.

+4

. SF.

, , . , , , ,

+1

Source: https://habr.com/ru/post/1684130/


All Articles