Skip to main content

ArlecchinoServiceCollectionExtensions class

Namespace: Arlecchino.Hosting · Assembly: Arlecchino

Registers Arlecchino with the host's container.

public static class ArlecchinoServiceCollectionExtensions

Methods

MemberSummary
AddArlecchino(IServiceCollection, Action<ArlecchinoOptions>)Registers everything an application needs and returns the builder that describes it. The look and the hold on the console are installed here, before any thread has claimed the drawing, and a terminal already registered stands.

Methods in detail

AddArlecchino(IServiceCollection, Action<ArlecchinoOptions>)

public static ArlecchinoBuilder AddArlecchino(
this IServiceCollection services,
Action<ArlecchinoOptions>? configure = null);

Registers everything an application needs and returns the builder that describes it. The look and the hold on the console are installed here, before any thread has claimed the drawing, and a terminal already registered stands.

Parameters

NameTypeDescription
servicesIServiceCollectionThe container being built.
configureAction<T><ArlecchinoOptions>Adjusts the settings before anything reads them.

Returns ArlecchinoBuilder — The builder, for describing views, commands and the rest.