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

Dictionary<string, string> parameters don't work #4

Closed
Akram-Hassan opened this issue Dec 17, 2016 · 1 comment
Closed

Dictionary<string, string> parameters don't work #4

Akram-Hassan opened this issue Dec 17, 2016 · 1 comment

Comments

@Akram-Hassan
Copy link

This sample from the home page doesn't work:

var param = new Dictionary<string, string> {
    { "user", "averagejoe236" },
    { "apiKey", "af43af43rcfaf34xqf" }
};

var uri = FluentUri.FluentUriBuilder.Create()
    .Scheme(FluentUri.UriScheme.Http)
    .Host("facebook.com")
    .Path("posts")
    .QueryParams(param)
    .ToString();  

giving system.Reflection.TargetParameterCountReflection.

However this works:

var parameters = new Dictionary<string, object> {
    { "user", "averagejoe236" },
    { "apiKey", "af43af43rcfaf34xqf" }
};

FluentUri.FluentUriBuilder.Create()
    .Scheme(FluentUri.UriScheme.Http)
    .Host("facebook.com")
    .Path("posts")
    .QueryParams(parameters)
    .ToString()
@balazsbotond
Copy link
Owner

Thanks for the bug report, you are absolutely right. I'll publish a fix soon.

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

2 participants