This repository holds the F# code that implements the Microsoft Orleans quickstart example UrlShortener:
graph LR;
Grains["Grains (F#)"];
CodeGen["CodeGen (C#)"];
Server["Server (F#)"];
Grains-->CodeGen;
CodeGen-->Server;
Notice that for now, it's necessary to have part of the project in C#, so Orleans correctly generates code. There's more information at the following links:
- DejanMilicic/OrleansFsharp
- Issue :: F# host: Could not find an implementation for interface OrleansDashboard.IDashboardGrain - C# host ok
- Q&A :: How to use Orleans in a single F# script file .fsx?
# start the server
dotnet run --project Server/
# assert that the HTTP server started at the port 5062Then, at the browser, open the server endpoint that shortens another URL, like:
This endpoint outputs a new URL, like http://localhost:5062/go/4F09B02C, which, once you open must redirect you to the previously shortened URL, in this case: https://gaio.dev.