public CommandHandlerDiscovery(ITypeExplorer typeExplorer, StandardKernel kernel,
                                ICommandRouter commandRouter)
 {
     this.typeExplorer  = typeExplorer;
     this.kernel        = kernel;
     this.commandRouter = commandRouter;
 }
        public CommandPermissionCache(IPermissionTypeRegistry permissionTypeRegistry,
                                      PermissionTypeIndexer permissionTypeIndexer,
                                      ITypeExplorer typeExplorer)
        {
            this.permissionTypeRegistry = permissionTypeRegistry;
            this.permissionTypeIndexer  = permissionTypeIndexer;
            this.typeExplorer           = typeExplorer;

            Clear();
        }
Esempio n. 3
0
        public AspNetResourceManager(ResourcePathRegistration[] resourcePathRegistrations,
                                     IConfiguration configuration,
                                     ITypeExplorer typeExplorer)
        {
            this.resourcePathRegistrations = resourcePathRegistrations;
            this.configuration             = configuration;
            this.typeExplorer = typeExplorer;

            UseResource         = er => true;
            UseLocalIfAvailable = resource => false;
        }
Esempio n. 4
0
        public TypeIndexerTests()
        {
            typeExplorer = Substitute.For <ITypeExplorer>();
            typeExplorer.GetAllTypes().Returns(new[]
            {
                typeof(TestIndexed),
                typeof(TestIndexedMoreVersions),
                typeof(TestIndexedMoreVersionsV2),
                typeof(TestIndexedRenamed),
                typeof(TestNotIndexedAbstract),
                typeof(TestNotIndexedGeneric <>),
                typeof(TestNotIndexedGeneric <>).MakeGenericType(typeof(string)),
                typeof(ITestNotIndexedInterface),
                typeof(NotIndexedUnrelated)
            });

            sut = new TypeIndexer(typeExplorer);
        }
Esempio n. 5
0
 public RavenProjectorDiscovery(ITypeExplorer typeExplorer, StandardKernel kernel)
     : base(typeExplorer, kernel, new [] { typeof(IRavenEntityEventProjector <>) })
 {
 }
 public SagaConventionConfigurationCache(ITypeExplorer typeExplorer)
 {
     this.typeExplorer = typeExplorer;
     CreateConfigurationInfos();
 }
Esempio n. 7
0
 public CommandHandlerDiscovery(ITypeExplorer typeExplorer, StandardKernel kernel)
 {
     this.typeExplorer = typeExplorer;
     this.kernel       = kernel;
 }
Esempio n. 8
0
 public EventUpgradeDiscovery(ITypeExplorer typeExplorer, StandardKernel kernel)
 {
     this.typeExplorer = typeExplorer;
     this.kernel       = kernel;
 }
Esempio n. 9
0
 public EFCoreProjectorDiscovery(ITypeExplorer typeExplorer, StandardKernel kernel)
     : base(typeExplorer, kernel, new [] { typeof(IEFCoreEntityEventProjector <>), typeof(IEFCoreSyncEntityEventProjector <>) })
 {
 }
Esempio n. 10
0
 public EntityTypeDiscovery(ITypeExplorer typeExplorer)
 {
     this.typeExplorer = typeExplorer;
 }
Esempio n. 11
0
 public PermissionTypeIndexer(ITypeExplorer typeExplorer,
                              IPermissionTypeRegistry permissionTypeRegistry)
 {
     this.typeExplorer           = typeExplorer;
     this.permissionTypeRegistry = permissionTypeRegistry;
 }
Esempio n. 12
0
 public ProjectorDiscovery(ITypeExplorer typeExplorer, StandardKernel kernel, Type[] genericProjectorInterfaces)
 {
     this.typeExplorer = typeExplorer;
     this.kernel       = kernel;
     this.genericProjectorInterfaces = genericProjectorInterfaces;
 }
Esempio n. 13
0
 public ModelDefinitionDiscovery(ITypeExplorer typeExplorer, StandardKernel kernel)
 {
     this.typeExplorer = typeExplorer;
     this.kernel       = kernel;
 }
Esempio n. 14
0
 /// <summary>
 /// Initializes a new instance of the <see cref="LegacyTemplateNameSource"/> class.
 /// </summary>
 public LegacyTemplateNameSource(ITypeExplorer typeExplorer)
     : base(typeExplorer)
 {
 }
Esempio n. 15
0
 public NotificationTypeCache(ITypeExplorer typeExplorer)
 {
     this.typeExplorer = typeExplorer;
 }
Esempio n. 16
0
 public TypeIndexer(ITypeExplorer typeExplorer)
 {
     this.typeExplorer = typeExplorer;
 }
 public RegisterCoreElementsModule(IAssemblyExplorer assemblyExplorer, ITypeExplorer typeExplorer, IAppInfo appInfo)
 {
     _assemblyExplorer = assemblyExplorer;
     _typeExplorer     = typeExplorer;
     _appInfo          = appInfo;
 }
Esempio n. 18
0
 public AutoMapperProfileDiscovery(ITypeExplorer typeExplorer, StandardKernel kernel)
 {
     this.typeExplorer = typeExplorer;
     this.kernel       = kernel;
 }
        /// <summary>
        /// Initializes a new instance of the <see cref="TemplateNameSource"/> class.
        /// </summary>
        /// <param name="typeExplorer">The type explorer.</param>
        /// <exception cref="ArgumentNullException"><paramref name="typeExplorer"/></exception>
        public TemplateNameSource(ITypeExplorer typeExplorer)
        {
            Guard.NotNull(typeExplorer, nameof(typeExplorer));

            TypeExplorer = typeExplorer;
        }
Esempio n. 20
0
 public ChangeDataTypeCache(ITypeExplorer typeExplorer)
 {
     this.typeExplorer = typeExplorer;
 }
Esempio n. 21
0
 public ConventionEventApplyRegistratorCache(ITypeExplorer typeExplorer)
 {
     ConventionEventApplyRegistratorCache.typeExplorer = typeExplorer;
 }
Esempio n. 22
0
 public EntityTypeManager(ITypeExplorer typeExplorer)
 {
     this.typeExplorer = typeExplorer;
     ClearCache();
 }
Esempio n. 23
0
 public DatabaseInitializerDiscovery(ITypeExplorer typeExplorer, StandardKernel kernel)
 {
     this.typeExplorer = typeExplorer;
     this.kernel       = kernel;
 }