Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Identify JsonRpcMethodAttribute on the interface #16

Open
ArcticLampyrid opened this issue Aug 4, 2020 · 0 comments
Open

Identify JsonRpcMethodAttribute on the interface #16

ArcticLampyrid opened this issue Aug 4, 2020 · 0 comments
Assignees
Milestone

Comments

@ArcticLampyrid
Copy link

    public interface IManager
    {
        [JsonRpcMethod]
        public string RegisterApp(string name);
    }
    public class Manager : JsonRpcService, IManager
    {
        [JsonRpcMethod]  // I don't think this is necessary since there is a JsonRpcMethodAttribute on the interface
        public string RegisterApp(string name)
        {
            var token = "abcdefg"; //hard-coded token for test
            return token;
        }
    }

What I use to build a host is

hostBuilder.Register(typeof(Manager));

Version: v0.5.4 (20200621)

@CXuesong CXuesong self-assigned this Aug 4, 2020
@CXuesong CXuesong added this to the v0.5.x milestone Aug 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants