Creating a new feature summary¶
This chapter summarizes the steps that you need to take to create a custom feature:
FullNodeBuilderextension method for your feature. There is no specific naming convention for these methods, but something like
UseFeatureX()would be ideal. The extension method will need its own static class. Again, a name like
FullNodeBuilderXExtensionis ideal for the class but this is not enforced.
Create a class for the feature, which inherits from
FullNodeFeature, and implement at least the
Populate your feature extensions method using the same pattern found in the other extension methods:
FullNodeBuilder.ConfigureFeature()with a lambda function as the parameter.
- Lambda A: Register your feature class with
IFeatureCollection.AddFeature()and begin a fluid interface.
- If required, register dependencies by extending the fluid interface with calls to
- Extend the fluid interface by making a call to
IFeatureRegistration.FeatureServices()with a lambda function as the parameter.
- Lambda B: Register your feature interfaces and classes as singleton services using
Place a call to your feature extension method in the Full Node Builder fluid interface found in