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)
}
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.
source
share