/// <summary> /// Applies the configuration (second step) by calling <see cref="Impl.IRouteConfigurationContext.AddDeclaredAction"/> for the <see cref="Actions"/>. /// </summary> /// <param name="context">Enables context lookup and manipulation, exposes a <see cref="IActivityMonitor"/> to use.</param> protected internal override void Apply(Impl.IRouteConfigurationContext context) { foreach (var a in Actions) { context.AddDeclaredAction(a.Name, a.Name, fromMetaInsert: true); } }
/// <summary> /// Never called: the first <see cref="Apply(Impl.IProtoRouteConfigurationContext)"/> does not register this object /// since we have nothing more to do than declaring actions. /// </summary> /// <param name="context">Enables context lookup and manipulation, exposes a <see cref="IActivityMonitor"/> to use.</param> protected internal override void Apply(Impl.IRouteConfigurationContext context) { }
/// <summary> /// Calls <see cref="Impl.IRouteConfigurationContext.AddDeclaredAction"/> to add the <see cref="DeclaredName"/> with this name. /// </summary> /// <param name="context">Enables context lookup and manipulation, exposes a <see cref="IActivityMonitor"/> to use.</param> protected internal override void Apply(Impl.IRouteConfigurationContext context) { context.AddDeclaredAction(_name, _declaredName, false); }