コード例 #1
0
 /// <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);
     }
 }
コード例 #2
0
 /// <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);
 }