Search Results for

    Show / Hide Table of Contents

    Class Group

    common configuration for a group of endpoints can be specified by implementing this abstract class and calling Configure(String, Action<EndpointDefinition>) in the constructor.

    Inheritance
    System.Object
    Group
    SubGroup<TParent>
    Implements
    IServiceResolverBase
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: FastEndpoints
    Assembly: FastEndpoints.dll
    Syntax
    public abstract class Group : IServiceResolverBase

    Methods

    Configure(String, Action<EndpointDefinition>)

    call this method in the constructor in order to configure the endpoint group.

    Declaration
    protected virtual void Configure(string routePrefix, Action<EndpointDefinition> ep)
    Parameters
    Type Name Description
    System.String routePrefix

    the route prefix for the group

    System.Action<EndpointDefinition> ep

    the configuration action to be performed on the EndpointDefinition

    CreateScope()

    common configuration for a group of endpoints can be specified by implementing this abstract class and calling Configure(String, Action<EndpointDefinition>) in the constructor.

    Declaration
    public IServiceScope CreateScope()
    Returns
    Type Description
    Microsoft.Extensions.DependencyInjection.IServiceScope

    Resolve(Type)

    common configuration for a group of endpoints can be specified by implementing this abstract class and calling Configure(String, Action<EndpointDefinition>) in the constructor.

    Declaration
    public object Resolve(Type typeOfService)
    Parameters
    Type Name Description
    System.Type typeOfService
    Returns
    Type Description
    System.Object

    Resolve<TService>()

    common configuration for a group of endpoints can be specified by implementing this abstract class and calling Configure(String, Action<EndpointDefinition>) in the constructor.

    Declaration
    public TService Resolve<TService>()
        where TService : class
    Returns
    Type Description
    TService
    Type Parameters
    Name Description
    TService

    TryResolve(Type)

    common configuration for a group of endpoints can be specified by implementing this abstract class and calling Configure(String, Action<EndpointDefinition>) in the constructor.

    Declaration
    public object TryResolve(Type typeOfService)
    Parameters
    Type Name Description
    System.Type typeOfService
    Returns
    Type Description
    System.Object

    TryResolve<TService>()

    common configuration for a group of endpoints can be specified by implementing this abstract class and calling Configure(String, Action<EndpointDefinition>) in the constructor.

    Declaration
    public TService TryResolve<TService>()
        where TService : class
    Returns
    Type Description
    TService
    Type Parameters
    Name Description
    TService

    Implements

    IServiceResolverBase
    In This Article
    Back to top Developed by Đĵ ΝιΓΞΗΛψΚ and contributors / Licensed under MIT / Website generated by DocFX