question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Bolero.Remoting.IRemoteService is not assignable from

See original GitHub issue

I 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:closed
  • Created 5 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
ADIX7commented, Mar 20, 2019

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 😄

0reactions
ADIX7commented, Mar 20, 2019

Intresting… Thank you, this solved the problem.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found