Skip to content

Is the Grain File Storage Example Still Valid in Orleans 9? #9581

Open
@zeus82

Description

@zeus82

Im trying to test a very specific use case and I was hoping to some a simple file based grain storage solution. I found this page: https://learn.microsoft.com/en-us/dotnet/orleans/tutorials-and-samples/custom-grain-storage?pivots=orleans-7-0, but when I copy the code, I get this error:
'IServiceCollection' does not contain a definition for 'AddSingletonNamedService' and no accessible extension method 'AddSingletonNamedService' accepting a first argument of type 'IServiceCollection' could be found (are you missing a using directive or an assembly reference?)

When I tried looking for information about AddSingletonNamedService I brings me to https://learn.microsoft.com/en-us/dotnet/api/orleans.runtime.keyedserviceextensions.addsingletonnamedservice?view=orleans-7.0. Changing it to Orleans 9 doesn't seem to work, it just goes back to 7.

So I guess my question is - is that example still valid for Orleans 9? If not, is there a newer example I could follow?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions