AW.Webapi.Sample.Areas.HelpPage.HelpPageConfigurationExtensions.SetSampleObjects C# (CSharp) Method

SetSampleObjects() public static method

Sets the objects that will be used by the formatters to produce sample requests/responses.
public static SetSampleObjects ( this config, object>.IDictionary sampleObjects ) : void
config this The .
sampleObjects object>.IDictionary The sample objects.
return void
        public static void SetSampleObjects(this HttpConfiguration config, IDictionary<Type, object> sampleObjects)
        {
            config.GetHelpPageSampleGenerator().SampleObjects = sampleObjects;
        }