Skip to content

Instantly share code, notes, and snippets.

@khellang
Created September 3, 2013 23:45
Show Gist options
  • Save khellang/6431088 to your computer and use it in GitHub Desktop.
Save khellang/6431088 to your computer and use it in GitHub Desktop.
public static class NegotiateExtensions
{
public static Negotiator WithCrazyModel(this Negotiator negotiator, object model)
{
return negotiator
.WithMediaRangeModel(MediaRange.FromString("application/foo"), new FooWrapper(model))
.WithMediaRangeModel(MediaRange.FromString("application/bar"), new BarWrapper(model));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment