Added the processor meta class e.g. top handle the service provider

This commit is contained in:
tsommer committed 2022-07-17 15:06:21 +02:00
1 parent a8e231bb1b
commit ab27bc206a
1 file changed
+18
+18
View 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;
}
}
}