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

Can't set input arguments when creating queue #75

Closed
ThomasArdal opened this issue Mar 19, 2013 · 10 comments
Closed

Can't set input arguments when creating queue #75

ThomasArdal opened this issue Mar 19, 2013 · 10 comments

Comments

@ThomasArdal
Copy link

I'm trying to set some arguments when calling CreateQueue on the management API. The QueueInfo provides a InputArguments properties for this (I guess?), but I can't really set any arguments on it, being a list of the InputArgument type which don't contain any properties or methods.

Is this part missing from the API or am I doing something wrong here?

@jonnii
Copy link
Contributor

jonnii commented Mar 19, 2013

Can you gist your code please.

@ThomasArdal
Copy link
Author

var virtualHost = client.CreateVirtualHost("test");
var queueInfo = new QueueInfo("myqueue");
queueInfo.Arguments.Add(new InputArgument());
client.CreateQueue(queueInfo, virtualHost);

@jonnii
Copy link
Contributor

jonnii commented Mar 19, 2013

What's the input argument you want to set?

@ThomasArdal
Copy link
Author

x-dead-letter-exchange: my-dead-letter-exchange

@jonnii
Copy link
Contributor

jonnii commented Mar 19, 2013

It looks like InputArgument (https://github.com/mikehadlow/EasyNetQ/blob/master/Source/EasyNetQ.Management.Client/Model/InputArgument.cs) doesn't have any properties on it... that doesn't seem right.

@ThomasArdal
Copy link
Author

Exactly! :) It probably should be a dictionary or similar.

@mikehadlow
Copy link
Contributor

The API was code-generated from the JSON HTTP API in which there are some
inconsistencies, especially around arguments. So count this as a 'to do'.
I'll try to get a chance to look at it today. Alternatively a pull request
is always appreciated :)

Mike

On Tue, Mar 19, 2013 at 2:03 PM, Thomas Ardal notifications@github.comwrote:

Exactly! :) It probably should be a dictionary or similar.


Reply to this email directly or view it on GitHubhttps://github.com/mikehadlow/EasyNetQ/issues/75#issuecomment-15115667
.

@ThomasArdal
Copy link
Author

I'm doing a pull request as we speak :)

@ThomasArdal
Copy link
Author

Pull request send.

@mikehadlow
Copy link
Contributor

Excellent!

On Wed, Mar 20, 2013 at 8:52 AM, Thomas Ardal notifications@github.comwrote:

I'm doing a pull request as we speak :)


Reply to this email directly or view it on GitHubhttps://github.com/mikehadlow/EasyNetQ/issues/75#issuecomment-15163817
.

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

3 participants