Table of Contents

Class CoreResourcePathAvailabilityCheckerService

Namespace
FoundationaLLM.Core.Services
Assembly
FoundationaLLM.Core.dll

Provides functionality to restrict access to resource providers and resource types in the Core API.

public class CoreResourcePathAvailabilityCheckerService : IResourcePathAvailabilityCheckerService
Inheritance
CoreResourcePathAvailabilityCheckerService
Implements
Inherited Members
Extension Methods

Remarks

This class implements the IResourcePathAvailabilityCheckerService interface, allowing API controllers to limit the availability of resource providers and resource types.

Constructors

CoreResourcePathAvailabilityCheckerService(ILogger<CoreResourcePathAvailabilityCheckerService>)

Provides functionality to restrict access to resource providers and resource types in the Core API.

public CoreResourcePathAvailabilityCheckerService(ILogger<CoreResourcePathAvailabilityCheckerService> logger)

Parameters

logger ILogger<CoreResourcePathAvailabilityCheckerService>

The logger used for logging.

Remarks

This class implements the IResourcePathAvailabilityCheckerService interface, allowing API controllers to limit the availability of resource providers and resource types.

Methods

IsResourcePathAvailable(HttpMethod, ResourcePath)

Determines whether the specified resource path is available for the given HTTP method.

public bool IsResourcePathAvailable(HttpMethod method, ResourcePath resourcePath)

Parameters

method HttpMethod

The HTTP method to check, such as Get or Post.

resourcePath ResourcePath

The resource path to evaluate for availability.

Returns

bool

true if the resource path is available for the specified HTTP method; otherwise, false.