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

moc's Client class starts with "IWhatever" like the interface it's based on #191

Closed
devduststorm opened this issue Sep 2, 2019 · 0 comments · Fixed by #217
Closed

moc's Client class starts with "IWhatever" like the interface it's based on #191

devduststorm opened this issue Sep 2, 2019 · 0 comments · Fixed by #217

Comments

@devduststorm
Copy link

devduststorm commented Sep 2, 2019

Moc.exe generates client code like this:

public class IChatHubClient : StreamingHubClientBase<global::XYZ.ChatHub, global::XYZ.IChatHubReceiver>, global::XYZ.IChatHub

As you can see, the class is IChatHubClient. I tried changing my IChatHub to a class named ChatHub, but that doesn't generate properly. Moc.exe should automatically remove the "I". If not present, it should be up to us to make sure it's there, as this is a universally followed standard for C#.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant