DocumentationContextBuilder<TContext>.CreateFormatter Method
- Namespace
- Kampute.DocToolkit
- Assembly
- Kampute.DocToolkit.dll
Definition
Creates the document formatter based on the configured settings.
protected virtual IDocumentFormatter CreateFormatter()Returns
- IDocumentFormatter
- An instance of IDocumentFormatter representing the document formatter.
Exceptions
- InvalidOperationException
- Thrown when the addressing strategy is not configured.
- NotSupportedException
- Thrown when no formatter is available for the specified configuration.
Remarks
This method initializes the document formatter using the file extension specified by the addressing strategy.
