C# Class CK.RouteConfig.Impl.MetaConfiguration

Base class for meta configuration object: those objects configure the configuration.
Afficher le fichier Open project: Invenietis/ck-core Class Usage Examples

Méthodes publiques

Méthode Description
CheckActionNameValidity ( string routeName, IActivityMonitor monitor, string nameToCheck ) : bool

Implements standard name checking for ActionConfiguration.Name. The provided nameToCheck must not be null or empty or contains only whitespaces nor '/' character. The '/' is reserved to structure the namespace.

Méthodes protégées

Méthode Description
Apply ( IProtoRouteConfigurationContext protoContext ) : void

Applies the configuration (first step). By default, adds this meta configuration to the context so that Apply(IRouteConfigurationContext) will be called.

Apply ( IRouteConfigurationContext context ) : void

Applies the configuration (second step).

CheckValidity ( string routeName, IActivityMonitor monitor ) : bool

Check the configuration validity.

Method Details

Apply() protected méthode

Applies the configuration (first step). By default, adds this meta configuration to the context so that Apply(IRouteConfigurationContext) will be called.
protected Apply ( IProtoRouteConfigurationContext protoContext ) : void
protoContext IProtoRouteConfigurationContext Enables context lookup and manipulation, exposes a to use.
Résultat void

Apply() protected abstract méthode

Applies the configuration (second step).
protected abstract Apply ( IRouteConfigurationContext context ) : void
context IRouteConfigurationContext Enables context lookup and manipulation, exposes a to use.
Résultat void

CheckActionNameValidity() static public méthode

Implements standard name checking for ActionConfiguration.Name. The provided nameToCheck must not be null or empty or contains only whitespaces nor '/' character. The '/' is reserved to structure the namespace.
static public CheckActionNameValidity ( string routeName, IActivityMonitor monitor, string nameToCheck ) : bool
routeName string The name of the route that contains the action.
monitor IActivityMonitor The monitor that will receive error descriptions.
nameToCheck string The name to check.
Résultat bool

CheckValidity() protected abstract méthode

Check the configuration validity.
protected abstract CheckValidity ( string routeName, IActivityMonitor monitor ) : bool
routeName string Name of the route that contains this configuration.
monitor IActivityMonitor Monitor to use to explain errors.
Résultat bool