public void SelectFormatter() { formatter = context.Engine.Configuration.FormatSelector.GetRequestFormatter( context.Route.RequestModel ?? typeof(object), context); IsSelected = true; }
public void SelectFormatter() { Type type = null; if (context.Response.Content != null) { type = context.Response.Content.GetType(); } Formatter = context.Engine.Configuration.FormatSelector.GetResponseFormatter(type, context); }
public void SelectFormatter() { formatter = context.Engine.Configuration.FormatSelector.GetRequestFormatter( context.Route.RequestModel ?? typeof (object), context); IsSelected = true; }