Added the processor meta class e.g. top handle the service provider
This commit is contained in:
parent
a8e231bb1b
commit
ab27bc206a
18
I18N Commander/Processor/ProcessorMeta.cs
Normal file
18
I18N Commander/Processor/ProcessorMeta.cs
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
namespace Processor;
|
||||||
|
|
||||||
|
public static class ProcessorMeta
|
||||||
|
{
|
||||||
|
private static IServiceProvider? SERVICE_PROVIDER;
|
||||||
|
|
||||||
|
public static IServiceProvider ServiceProvider
|
||||||
|
{
|
||||||
|
get => ProcessorMeta.SERVICE_PROVIDER!;
|
||||||
|
set
|
||||||
|
{
|
||||||
|
if(ProcessorMeta.SERVICE_PROVIDER is not null)
|
||||||
|
return;
|
||||||
|
|
||||||
|
ProcessorMeta.SERVICE_PROVIDER = value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user