File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
test/Dapr.Actors.Generators.Test Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -893,10 +893,10 @@ public interface ITrait
893
893
}
894
894
895
895
[GenerateActorClient]
896
- public interface ITestActor<TTrait> where TTrait : ITrait
896
+ public interface ITestActor<in TTrait> where TTrait : ITrait
897
897
{
898
898
Task<bool> SetTrait(TTrait trait);
899
- Task<TTrait > GetTrait(string name);
899
+ Task<ITrait > GetTrait(string name);
900
900
}
901
901
}" ;
902
902
@@ -917,9 +917,9 @@ public TestActorClient(Dapr.Actors.Client.ActorProxy actorProxy)
917
917
this.actorProxy = actorProxy;
918
918
}
919
919
920
- public System.Threading.Tasks.Task<TTrait > GetTrait(string name)
920
+ public System.Threading.Tasks.Task<Test.ITrait > GetTrait(string name)
921
921
{
922
- return this.actorProxy.InvokeMethodAsync<string, TTrait >(""GetTrait"", name);
922
+ return this.actorProxy.InvokeMethodAsync<string, Test.ITrait >(""GetTrait"", name);
923
923
}
924
924
925
925
public System.Threading.Tasks.Task<bool> SetTrait(TTrait trait)
You can’t perform that action at this time.
0 commit comments