Added the processor meta class e.g. top handle the service provider
This commit is contained in:
1 file changed
+18
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user