public static void PreInitialize() { // invoke dependency resolution while WebAPI DLLs have precedence Type type = null; type = typeof(WebHostBuilder); type = typeof(KestrelStartup); type = typeof(X509Certificate2); type = typeof(RSA); type = typeof(WebHostDefaults); type = typeof(StatelessAuthenticationConfiguration); type = typeof(ClaimsIdentity); type = typeof(IWebHost); type = typeof(WebHost); type = typeof(TinyIoCContainer); type = typeof(NancyContext); type = typeof(IPipelines); type = typeof(INancyEnvironment); type = typeof(Response); type = typeof(NancyModule); type = typeof(AbstractValidator <AdminCommandRequestModel>); type = typeof(ModuleExtensions); // loads Nancy.Validation.FluentValidation assembly into the current app domain so that the patched DependencyContextAssemblyCatalog will catalog it upon startup var z = new DefaultFluentAdapterFactory(null); Gate gate = Gate.Instance; // spin up gate threads SetPerch(); }
public DefaultFluentAdapterFactoryFixture() { this.rule = new PropertyRule(null, null, null, null, null, null); this.factory = new DefaultFluentAdapterFactory(); }