Allows configuration for the features which are used when implicitly registering API controllers. This is necessary when registering a new feature on the full node that includes a controller, but not wanting to include it in the full node web API (for example, wanting to provide a seperate API). Also useful for nodes where you want to provide selective access to the API.
Usage
new FullNodeBuilder()
// ...
.UseApi(options =>
{
options.Include<SmartContractWalletFeature>();
})
new FullNodeBuilder()
// ...
.UseApi(options =>
{
options.Exclude<BlockStoreFeature>();
options.Exclude<ConsensusFeature>();
})
This doesn't effect explicitly registered controllers.
Allows configuration for the features which are used when implicitly registering API controllers. This is necessary when registering a new feature on the full node that includes a controller, but not wanting to include it in the full node web API (for example, wanting to provide a seperate API). Also useful for nodes where you want to provide selective access to the API.
Usage
This doesn't effect explicitly registered controllers.