private static void BuildNotificationProvider(Assembly assembly, IServiceScope scope)
        {
            IEnumerable <Type> providers = assembly.GetExportedTypes().Where(p => p.GetInterfaces().Any(x => x == typeof(INotificationProvider)));

            if (providers.Any())
            {
                INotificationRegister register = scope.ServiceProvider.GetService <INotificationRegister>();

                IDbHelper dbHelper = scope.ServiceProvider.GetService <IDbHelper>();

                foreach (Type p in providers)
                {
                    INotificationProvider obj = (INotificationProvider)assembly.CreateInstance(p.FullName);
                    Dictionary <string, List <INotificationHandler> > result = obj.GetNotifications(dbHelper);

                    foreach (KeyValuePair <string, List <INotificationHandler> > item in result)
                    {
                        foreach (INotificationHandler i in item.Value)
                        {
                            register.Subscribe(item.Key, i);
                        }
                    }
                }
            }
        }
        public void RegisterFrom(CollectibleAssemblyLoadContext assemblyLoadContext)
        {
            var assembly = assemblyLoadContext.GetEntryPointAssembly();
            IEnumerable<Type> providers = assembly.GetExportedTypes().Where(p => p.GetInterfaces().Any(x => x.Name == "INotificationProvider"));

            if (providers.Any())
            {


                foreach (Type p in providers)
                {
                    INotificationProvider obj = (INotificationProvider)assembly.CreateInstance(p.FullName);
                    Dictionary<string, List<INotificationHandler>> result = obj.GetNotifications();

                    foreach (KeyValuePair<string, List<INotificationHandler>> item in result)
                    {
                        foreach (INotificationHandler i in item.Value)
                        {
                            
                            Subscribe(item.Key, i);
                            
                        }
                    }
                }
            }
        }