Table of Contents

Class SkillService

Namespace
Builvero.Application.Services
Assembly
Builvero.Application.dll

Provides business logic for skill retrieval and management.

public class SkillService : ISkillService
Inheritance
SkillService
Implements
Inherited Members

Remarks

This service handles skill-related operations, primarily retrieving skills filtered by category. Skills are used to match users with projects based on technical expertise.

Constructors

SkillService(ISkillRepository)

Initializes a new instance of the SkillService class.

public SkillService(ISkillRepository skillRepository)

Parameters

skillRepository ISkillRepository

Repository for skill data access operations.

Methods

GetSkillsByCategoryAsync(string?, CancellationToken)

Retrieves all active skills, optionally filtered by category.

public Task<List<SkillDto>> GetSkillsByCategoryAsync(string? category, CancellationToken cancellationToken = default)

Parameters

category string

Optional category filter (e.g., "SoftwareEngineering", "Design"). Must match a SkillCategory enum value (case-insensitive).

cancellationToken CancellationToken

Cancellation token to cancel the operation.

Returns

Task<List<SkillDto>>

A list of SkillDto objects representing active skills. Only active skills are returned.

Remarks

If category is provided and matches a valid enum value, only skills in that category are returned. If category is null, empty, or invalid, all active skills are returned regardless of category.

Only active skills (IsActive = true) are included in the results. Inactive skills are hidden from selection but may still be associated with existing users or projects.