サービスリモーティングを使用して、サービスファブリックアプリケーションメソッドでジェネリックパラメータを送信しています。Azureサービスファブリックジェネリックパラメータを使用したリモーティング
次のように私のインタフェースがある:
public interface IMyServiceRemoting : IService
{
Task<String> GetMessageFromServer<T>(T hint)// a hint could be of byte[] or string or any object
}
私は
System.ArgumentExceptionの取得していますが、「サービス・インターフェース「ServiceRemoting.Interfaces.IMyServiceRemoting`1 [[System.Objectの、mscorlibを、version = 4.0.0.0、Culture =ニュートラル、publicKeyToken = b77a5c561934e089]] 'ジェネリックインターフェイスを使用できません。ジェネリックインターフェイスはリモートではありません "。
なぜジェネリックを使用できないのか理解できません。 適切な説明を教えてください。
関連:https://github.com/Azure/service-fabric -services-and-actors-dotnet/issues/21 – Mardoxx
関連項目:https://stackoverflow.com/questions/36985580/service-fabric-with-generic-services – Mardoxx