Add foundation
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
namespace Toolkit.Foundation;
|
||||
|
||||
public class ComponentScopeProvider(IComponentScopeCollection scopes) :
|
||||
IComponentScopeProvider
|
||||
{
|
||||
public IServiceProvider? Get(string name)
|
||||
{
|
||||
return scopes.TryGetValue(name,
|
||||
out IServiceProvider? scope) ? scope : default;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user