UmbracoCms.Core by Umbraco HQ

<PackageReference Include="UmbracoCms.Core" Version="8.2.2" />

.NET API 2,434,560 bytes

 Composition

public class Composition : IRegister
Represents a composition.
public object Concrete { get; }

public Configs Configs { get; }

Gets the configurations.

public IProfilingLogger Logger { get; }

Gets the logger.

public Dictionary<string, Action> OnCreatingFactory { get; }

Gets a dictionary of action to execute when creating the factory.

public IRuntimeState RuntimeState { get; }

Gets the runtime state.

public TypeLoader TypeLoader { get; }

Gets the type loader.

public Composition(IRegister register, TypeLoader typeLoader, IProfilingLogger logger, IRuntimeState runtimeState, Configs configs = null)

Initializes a new instance of the Composition class.

public void ConfigureForWeb()

public void Register(Type serviceType, Lifetime lifetime = 0)

public void Register(Type serviceType, Type implementingType, Lifetime lifetime = 0)

public void Register<TService>(Func<IFactory, TService> factory, Lifetime lifetime = 0)

public void Register(Type serviceType, object instance)

public void RegisterAuto(Type serviceBaseType)

public void RegisterFor<TService, TTarget>(Lifetime lifetime = 0)

public void RegisterFor<TService, TTarget>(Type implementingType, Lifetime lifetime = 0)

public void RegisterFor<TService, TTarget>(Func<IFactory, TService> factory, Lifetime lifetime = 0)

public void RegisterFor<TService, TTarget>(TService instance)

public void RegisterUnique(Type serviceType)

Registers a unique service as its own implementation.

public void RegisterUnique(Type serviceType, Type implementingType)

Registers a unique service with an implementation type.

public void RegisterUnique<TService>(Func<IFactory, TService> factory)

Registers a unique service with an implementation factory.

public void RegisterUnique(Type serviceType, object instance)

Registers a unique service with an implementing instance.

public void RegisterUniqueFor<TService, TTarget>()

Registers a unique service for a target, as its own implementation.

public void RegisterUniqueFor<TService, TTarget>(Type implementingType)

Registers a unique service for a target, with an implementing type.

public void RegisterUniqueFor<TService, TTarget>(Func<IFactory, TService> factory)

Registers a unique service for a target, with an implementation factory.

public void RegisterUniqueFor<TService, TTarget>(TService instance)

Registers a unique service for a target, with an implementing instance.

public TBuilder WithCollectionBuilder<TBuilder>() where TBuilder : ICollectionBuilder

Gets a collection builder (and registers the collection).