Bolero.Remoting.IRemoteService is not assignable from
See original GitHub issueI try to use Remoting but I get “Error: System.InvalidOperationException: constrained call: Bolero.Remoting.IRemoteService is not assignable from BitTorrentFileServer.Service.WebService”
This is my type:
namespace BitTorrentFileServer.Service
open BitTorrentFileServer.Data
open Bolero.Remoting
type WebService =
{
getFolders : unit -> Async<Folder>
}
interface IRemoteService with
member this.BasePath = "/api"
I created a test C# program. In it I could cast it to IRemoteService like this:
var a = new BitTorrentFileServer.Service.WebService(null);
IRemoteService b = (IRemoteService)a;
Console.WriteLine(b.BasePath);
Issue Analytics
- State:
- Created 5 years ago
- Comments:8 (3 by maintainers)
Top Results From Across the Web
Remoting - Bolero: F# in WebAssembly
Easily call server-side functions from the client side. Defining the service. A set of server-side functions is defined as a record called a...
Read more >WebSharper Forums
Bolero.Remoting.IRemoteService is not assignable from. (8). 4 years ago user5435. question. Calling Swagger/OpenAPI backend API with GET, PATCH etc.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Your welcome! 😃 I hope you can fix it soon. It’s my first F# project, actually I just do it for learning. It seems that it will be good for testing Bolero 😄
Intresting… Thank you, this solved the problem.