IStashboxContainer
public interface IStashboxContainer : IDependencyRegistrator, IDependencyResolver, IServiceProvider, IAsyncDisposable, IDisposable, IDependencyReMapper, IDependencyCollectionRegistrator, IDecoratorRegistrator, IFuncRegistrator
Represents a dependency injection container.
using Stashbox.Configuration;
using Stashbox.Registration;
using Stashbox.Resolution;
using System;
using System.Collections.Generic;
using System.Runtime.CompilerServices;
namespace Stashbox
{
public interface IStashboxContainer : IDependencyRegistrator, IDependencyResolver, IServiceProvider, IAsyncDisposable, IDisposable, IDependencyReMapper, IDependencyCollectionRegistrator, IDecoratorRegistrator, IFuncRegistrator
{
[System.Runtime.CompilerServices.Nullable(1)]
IContainerContext ContainerContext {
[System.Runtime.CompilerServices.NullableContext(1)]
get;
}
[System.Runtime.CompilerServices.Nullable(new byte[] {
1,
0,
1,
1
})]
IEnumerable<ReadOnlyKeyValue<object, IStashboxContainer>> ChildContainers {
[return: System.Runtime.CompilerServices.Nullable(new byte[] {
1,
0,
1,
1
})]
get;
}
[System.Runtime.CompilerServices.NullableContext(1)]
IStashboxContainer RegisterResolver(IResolver resolver);
[System.Runtime.CompilerServices.NullableContext(1)]
IStashboxContainer CreateChildContainer([System.Runtime.CompilerServices.Nullable(new byte[] {
2,
1
})] Action<ContainerConfigurator> config = null, bool attachToParent = true);
[System.Runtime.CompilerServices.NullableContext(1)]
IStashboxContainer CreateChildContainer(object identifier, [System.Runtime.CompilerServices.Nullable(new byte[] {
2,
1
})] Action<IStashboxContainer> config = null, bool attachToParent = true);
[System.Runtime.CompilerServices.NullableContext(1)]
[return: System.Runtime.CompilerServices.Nullable(2)]
IStashboxContainer GetChildContainer(object identifier);
[System.Runtime.CompilerServices.NullableContext(2)]
bool IsRegistered<TFrom>(object name = null);
[System.Runtime.CompilerServices.NullableContext(1)]
bool IsRegistered(Type typeFrom, [System.Runtime.CompilerServices.Nullable(2)] object name = null);
[System.Runtime.CompilerServices.NullableContext(1)]
IStashboxContainer Configure(Action<ContainerConfigurator> config);
void Validate();
[return: System.Runtime.CompilerServices.Nullable(new byte[] {
1,
0,
1,
1
})]
IEnumerable<KeyValuePair<Type, ServiceRegistration>> GetRegistrationMappings();
[System.Runtime.CompilerServices.NullableContext(1)]
IEnumerable<RegistrationDiagnosticsInfo> GetRegistrationDiagnostics();
}
}