DocumentAddressProvider.Create Method
- Namespace
- Kampute.DocToolkit.Routing
- Assembly
- Kampute.DocToolkit.dll
Definition
Creates a new instance of the DocumentAddressProvider class with the specified addressing strategy.
public static DocumentAddressProvider Create<TStrategy>(IEnumerable<IAssembly> assemblies, Uri baseUrl = null)
where TStrategy : IDocumentAddressingStrategy, new()Type Parameters
TStrategy- The type of the addressing strategy to use.
Parameters
assembliesIEnumerable<IAssembly>- The assemblies being documented.
baseUrlUri optional- The base URL of the documentation site, or
nullfor relative URLs.
Returns
- DocumentAddressProvider
- A new instance of the DocumentAddressProvider class.
Exceptions
- ArgumentNullException
- Thrown when
assembliesisnull. - ArgumentException
- Thrown when
baseUrlis notnulland is not an absolute URL.
