chore: add data widget for servicecontainer status, remove serveropcode data widget

This commit is contained in:
goat 2023-09-17 20:35:40 +02:00
parent 428e1afefd
commit ab9b7e1602
No known key found for this signature in database
GPG key ID: 49E2AA8C6A76498B
4 changed files with 70 additions and 41 deletions

View file

@ -29,6 +29,16 @@ internal class ServiceContainer : IServiceProvider, IServiceType
public ServiceContainer()
{
}
/// <summary>
/// Gets a dictionary of all registered instances.
/// </summary>
public IReadOnlyDictionary<Type, ObjectInstance> Instances => this.instances;
/// <summary>
/// Gets a dictionary mapping interfaces to their implementations.
/// </summary>
public IReadOnlyDictionary<Type, Type> InterfaceToTypeMap => this.interfaceToTypeMap;
/// <summary>
/// Register a singleton object of any type into the current IOC container.