Currently, we have to register manually on .NET side methods.
So, there is an idea for:
public sealed class Foo
{
public Task<int> Add(int a, int b) => Task.FromResult(a + b);
public Task<int> Sub(int a, int b) => Task.FromResult(a - b);
}
var foo = new Foo();
messenger = new Messenger();
// Current strategy:
messenger.RegisterFunc<int, int, int>(foo.Add);
messenger.RegisterFunc<int, int, int>(foo.Sub);
// Automatic interpretation for declared methods:
messenger.RegisterObject(foo);
Currently, we have to register manually on .NET side methods.
So, there is an idea for: