/// <summary> /// Applies the configuration (first step) by <see cref="Impl.IProtoRouteConfigurationContext.DeclareAction">declaring</see> all the <see cref="Actions"/>. /// </summary> /// <param name="protoContext">Enables context lookup and manipulation, exposes a <see cref="IActivityMonitor"/> to use.</param> protected internal override void Apply(Impl.IProtoRouteConfigurationContext protoContext) { foreach (var a in Actions) { protoContext.DeclareAction(a, overridden: false); } }
/// <summary> /// Applies the configuration (first step) by calling <see cref="Impl.IProtoRouteConfigurationContext.AddRoute"/>. /// </summary> /// <param name="protoContext">Enables context lookup and manipulation, exposes a <see cref="IActivityMonitor"/> to use.</param> protected internal override void Apply(Impl.IProtoRouteConfigurationContext protoContext) { protoContext.AddRoute(_route); }