Table of Contents

Class CoreManagementCapabilitiesService

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 CoreManagementCapabilitiesService : IManagementCapabilitiesService
Inheritance
CoreManagementCapabilitiesService
Implements
Inherited Members
Extension Methods

Remarks

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

Constructors

CoreManagementCapabilitiesService(ILogger<CoreManagementCapabilitiesService>)

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

public CoreManagementCapabilitiesService(ILogger<CoreManagementCapabilitiesService> logger)

Parameters

logger ILogger<CoreManagementCapabilitiesService>

The logger used for logging.

Remarks

This class implements the IManagementCapabilitiesService 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.

IsValidRequestPayload(object)

Determines whether the provided request payload is valid.

public bool IsValidRequestPayload(object requestPayload)

Parameters

requestPayload object

Returns

bool