src/packages/EmbedIO/Routing/RouteResolverCollectionBase`2.cs
/// <summary>
/// Associates some data and a route to a handler.
/// </summary>
/// <param name="data">Data used to determine which contexts are
/// suitable to be handled by <paramref name="handler"/>.</param>
/// <param name="matcher">The <see cref="RouteMatcher"/>to match URL paths against.</param>
/// <param name="handler">A callback used to handle matching contexts.</param>
/// <exception cref="ArgumentNullException">
/// <para><paramref name="matcher"/> is <see langword="null"/>.</para>
/// <para>- or -</para>
/// <para><paramref name="handler"/> is <see langword="null"/>.</para>
/// </exception>
/// <exception cref="InvalidOperationException">The <see cref="CreateResolver"/> method
/// returned <see langword="null"/>.</exception>
/// <seealso cref="ResolveAsync"/>
/// <seealso cref="Add(TData,RouteMatcher,SyncRouteHandlerCallback)"/>
/// <seealso cref="RouteResolverBase{TData}.Add(TData,RouteHandlerCallback)"/>
Associates some data and a route to a handler.
Associates some data and a route to a handler .
public void Add(TData data, RouteMatcher matcher, RouteHandlerCallback handler)
        {
            matcher = Validate.NotNull(nameof(matcher), matcher);
            handler = Validate.NotNull(nameof(handler), handler);
            GetResolver(matcher).Add(data, handler);
        }
public void Add ( TData data , RouteMatcher matcher , RouteHandlerCallback handler ) { matcher = Validate . NotNull ( nameof ( matcher ) , matcher ) ; handler = Validate . NotNull ( nameof ( handler ) , handler ) ; GetResolver ( matcher ) . Add ( data , handler ) ; }
Associates some data and a route to a handler.
Associates some data and a route to a handler .
None
The  method
returned .
The method returned .
data
TData
Data used to determine which contexts are
suitable to be handled by .
Data used to determine which contexts are suitable to be handled by .
matcher
RouteMatcher
The to match URL paths against.
The to match URL paths against .
handler
RouteHandlerCallback
A callback used to handle matching contexts.
A callback used to handle matching contexts .
seealso
None
seealso
None
seealso
None