You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Problem is that after applying the above change (and fixing reference paths from .csproj to .fsproj), now I'm getting:
Unhandled exception. System.InvalidOperationException: Unable to find an IGrainReferenceActivatorProvider for grain type hello
at Orleans.GrainReferences.GrainReferenceActivator.CreateActivator(GrainType grainType, GrainInterfaceType interfaceType) in /_/src/Orleans.Core/GrainReferences/GrainReferenceActivator.cs:line 85
at Orleans.GrainReferences.GrainReferenceActivator.CreateReference(GrainId grainId, GrainInterfaceType interfaceType) in /_/src/Orleans.Core/GrainReferences/GrainReferenceActivator.cs:line 54
at Orleans.GrainFactory.GetGrain(Type interfaceType, IdSpan grainKey, String grainClassNamePrefix) in /_/src/Orleans.Core/Core/GrainFactory.cs:line 217
at Orleans.GrainFactory.GetGrain[TGrainInterface](Int64 primaryKey, String grainClassNamePrefix) in /_/src/Orleans.Core/Core/GrainFactory.cs:line 51
at Program.<Main>$(String[] args) in /home/peter/work/org/dotnet-samples/orleans/FSharpHelloWorld/HelloWorld/Program.cs:line 21
at Program.<Main>(String[] args)
How can I fix the above problem?
How can I declare interfaces with F# types in Orleans project?
The text was updated successfully, but these errors were encountered:
I've added a commit for the above change to make it easier to test: dotnet/samples@c132eb8
pkese
changed the title
IGrainReferenceActivatorProvider exception with interfaces written in F#IGrainReferenceActivatorProvider exception with interfaces written in F#
May 5, 2024
I've checked out the F# sample app and found out that interfaces in that sample app are written in C#.
Since there's not much point in using F# while being restricted to C# types (one can't use F# types in C# interfaces), I rewrote that assembly in F#.
IHelloGrain.fs
HelloWorldInterfaces.fsproj
Problem is that after applying the above change (and fixing reference paths from
.csproj
to.fsproj
), now I'm getting:How can I fix the above problem?
How can I declare interfaces with F# types in Orleans project?
The text was updated successfully, but these errors were encountered: