Provider Class and Interface Specifications
In CCF, the following classes and interfaces are used to instantiate the Provider pattern.
- ProviderConfigurationHandler class – This class is the configuration section handler for CCF providers. It implements the IConfigurationSectionHandler interface, as required by all configuration section handlers.
- ProviderConfigurationClass – This class holds the configuration data for providers.
- Provider class – This class contains information about entries in the providers section of a specific provider's configuration.
- ProviderBase class – This is the base class of all CCF providers. It allows applications to work with providers in a generic manner. It forces implementation details of CCF providers, and it provides an efficient way to get the constructorInfo of the provider so that an instance can be created through reflection.
For example:
The Microsoft.Ccf.Csr.WebServices.CcfInfrastructure.Application Web service has a GetApplications() Web method. Its corresponding provider class, Microsoft.Ccf.Csr.WebServices.Providers.CcfInfrastructure, has a corresponding abstract function, GetApplications(), that has the same signature and return value. Refer to following figure for a provider class diagram.
Show: