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

Topic Creation API should not require the type-name and may take the topic name optionally too #2

Open
kydos opened this issue Sep 8, 2015 · 0 comments

Comments

@kydos
Copy link
Member

kydos commented Sep 8, 2015

The current API to define a topic requires a user to specify both the Topic type, the topic registration type and the topic name:

var topic = await vortex.CreateTopic (topicName,
topicType,
topicRegistrationType,
qos);

For consistency with other APIs and simplicity we should allow the "topicType" and more importantly the topic registration type to be just an option and deduce it automatically from the type parameter (ChatMessage below).

var topic = await vortex.CreateTopic (topicName, qos);

We could potentially also assume that TopicName == TopicTypeName when a topic is created as follows:

var topic = await vortex.CreateTopic ();

or like this:

var topic = await vortex.CreateTopic (qos);

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

No branches or pull requests

1 participant