core icon indicating copy to clipboard operation
core copied to clipboard

Allow interfaces for instance-based remoting

Open Jand42 opened this issue 6 years ago • 0 comments

Allow using instance method remoting using interface types instead of just (usually abstract) classes. (See "Server-side customization" in https://developers.websharper.com/docs/v4.x/cs/remoting)

    public interface IRemotingHandler
    {
        [Remote]
        Task<MyResult> Handle(MyCommand command);
    }

This was possible in F# with WebSharper 3.0 but were removed from 4.0 because interfaces getting tight semantics for client-side use, but could be reintroduced with some metadata and compiler changes.

Jand42 avatar Mar 05 '19 10:03 Jand42