Skip to content

Interface IModule

Namespace: Cephalon.Abstractions.Modules
Assembly: Cephalon.Abstractions.dll

Defines the host-agnostic contract that every Cephalon module implements.

public interface IModule

Gets the module descriptor used for discovery, ordering, and manifest output.

ModuleDescriptor Descriptor { get; }

ModuleDescriptor

Configures services required by the module.

void ConfigureServices(IServiceCollection services)

services IServiceCollection

The service collection receiving module services.

RegisterCapabilities(ICapabilityRegistry)

Section titled “ RegisterCapabilities(ICapabilityRegistry)”

Registers capabilities exposed by the module.

void RegisterCapabilities(ICapabilityRegistry capabilities)

capabilities ICapabilityRegistry

The capability registry receiving module capabilities.