Jobs module: Create the configuration class
The configuration class is a simple class which provides module configuration capabilities. The configuration class sets the OpenAccessJobsDataProvider as the default provider and the default backend view.
To implement the configuration class:
- In Visual Studio, in your project, open the context menu of the Configuration folder and click Add » New Item...
- In the left pane, select Visual C# » Code.
- Click Class and in the Name input field, enter JobsConfig.cs
- Open the JobsConfig.cs file.
- Change the class definition to inherit
ContentModuleConfigBase
.
- Implement ContentModuleConfigBase.
EXAMPLE: For more information about the contents of the file, refer to class JobsConfig.cs
from the downloaded sample project.
In this class, you inherit from ContentModuleConfigBase. Inside the InitializeDefaultProviders method, the JobsConfig class sets the OpenAccessJobsDataProvider as the default provider. In InitializeDefaultViews you set the default backend view.