HelpPageSampleGenerator Methods

The HelpPageSampleGenerator type exposes the following members.

Methods


  Name Description
Public method Equals(System.Object)
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected method Finalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public method GetActionSample
Search for samples that are provided directly through ActionSamples.
Public method GetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public method GetSample
Gets the request or response body samples.
Public method GetSampleObject
Gets the sample object that will be serialized by the formatters. First, it will look at the SampleObjects. If no sample object is found, it will try to create one using DefaultSampleObjectFactory(HelpPageSampleGenerator, Type) (which wraps an ObjectGenerator) and other factories in SampleObjectFactories.
Public method GetSampleRequests
Gets the request body samples for a given ApiDescription.
Public method GetSampleResponses
Gets the response body samples for a given ApiDescription.
Public method GetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected method MemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public method ResolveHttpRequestMessageType
Resolves the actual type of ObjectContent passed to the HttpRequestMessage in an action.
Public method ResolveType
Resolves the type of the action parameter or return value when HttpRequestMessage or HttpResponseMessage is used.
Public method ToString
Returns a string that represents the current object.
(Inherited from Object.)
Public method WriteSampleObjectUsingFormatter
Writes the sample object using formatter.