public void Initialize()
        {
            ContainerFactory.Current.KillAllInstances();
            KernelScope = Resolver.BeginKernelScope();
            Resolver.LoadModuleConfiguration<Blueprint>();

        }
 public void Initialize()
 {
     KernelScope = Resolver.BeginKernelScope();
     Resolver.LoadModuleConfiguration<Blueprint>();
     Resolver.GetConfigurator().Bind<ICodeInjector>().To<CSharpInjector>(LanguageType.CSharp);
     Resolver.GetConfigurator().Bind<ICodeInjector>().To<VbCodeInjector>(LanguageType.VisualBasic);
 }
Beispiel #3
0
 public void Initialize()
 {
     KernelScope = Resolver.BeginKernelScope();
     Resolver.LoadModuleConfiguration <Blueprint>();
     Resolver.GetConfigurator().Bind <ICodeInjector>().To <CSharpInjector>(LanguageType.CSharp);
     Resolver.GetConfigurator().Bind <ICodeInjector>().To <VbCodeInjector>(LanguageType.VisualBasic);
 }
Beispiel #4
0
        public void Initialize()
        {
            KernelScope = Resolver.BeginKernelScope();
            Resolver.LoadModuleConfiguration<Blueprint>();
            Scope = RequestResponseScopefactory.CreateScope();

        }
Beispiel #5
0
 /// <summary>
 /// Terminates the kernel context
 /// </summary>
 /// <param name="provider"></param>
 internal static void EndKernelScope(IKernelContext provider, bool cleanAllScopes)
 {
     ((IKernelContextCommands)provider).End();
     if (cleanAllScopes)
     {
         ContainerFactory.Current(new ContextProviders.ScopeContext(ResolverKernel)).KillAllInstances();
     }
 }
Beispiel #6
0
 /// <summary>
 /// Terminates the kernel context
 /// </summary>
 /// <param name="provider"></param>
 public static void EndKernelScope(IKernelContext provider, bool cleanAllScopes)
 {
     ((IKernelContextCommands)provider).End();
     if (cleanAllScopes)
     {
         ContainerFactory.Current.KillAllInstances();
     }
 }
Beispiel #7
0
 public void Initialize()
 {
     KernelScope = Resolver.BeginKernelScope();
     Resolver.LoadModuleConfiguration <Blueprint>();
     Resolver.GetConfigurator().Bind <IFileTransfer>().To <FileTransfer>(TransferMethods.File);
     Resolver.GetConfigurator().Bind <IFileTransfer>().To <HttpFileTrasfer>(TransferMethods.Http);
     Resolver.GetConfigurator().Bind <IFileTransfer>().To <FtpTrasfer>(TransferMethods.Ftp);
     Resolver.GetConfigurator().Bind <IFileTransfer>().To <FileTransfer>();
     Resolver.GetConfigurator().UnBind <ILogging>().AllAndBind().To <Log4NetLogging>();
     Logging.ResetLogger();
 }
Beispiel #8
0
 public AutoFacIntegrationTests()
 {
     try
     {
         Resolver.LoadIocContainer(new AutoFacFactory());
     }
     catch (Exception)
     {
     }
     KernelScope = Resolver.BeginKernelScope();
     Resolver.LoadModuleConfiguration <AutoFacTestBindings>();
 }
Beispiel #9
0
        public void Initialize()
        {
            KernelScope = Resolver.BeginKernelScope();
            Resolver.LoadModuleConfiguration<Blueprint>();
            Resolver.GetConfigurator().Bind<IFileTransfer>().To<FileTransfer>(TransferMethods.File);
            Resolver.GetConfigurator().Bind<IFileTransfer>().To<HttpFileTrasfer>(TransferMethods.Http);
            Resolver.GetConfigurator().Bind<IFileTransfer>().To<FtpTrasfer>(TransferMethods.Ftp);
            Resolver.GetConfigurator().Bind<IFileTransfer>().To<FileTransfer>();
            Resolver.GetConfigurator().UnBind<ILogging>().AllAndBind().To<Log4NetLogging>();
            Logging.ResetLogger();

        }
 public AutoFacIntegrationTests()
 {
     try
     {
         Resolver.LoadIocContainer(new AutoFacFactory());
     }
     catch (Exception)
     {
     }
     KernelScope = Resolver.BeginKernelScope();
     Resolver.LoadModuleConfiguration<AutoFacTestBindings>();
 }
Beispiel #11
0
 public void Initialize()
 {
     KernelScope = Resolver.BeginKernelScope();
     Resolver.LoadModuleConfiguration <Blueprint>();
 }
        public void Initialize()
        {
            KernelScope = Resolver.BeginKernelScope();
            Resolver.LoadModuleConfiguration<Blueprint>();

        }
Beispiel #13
0
 public ConfigSetTests()
 {
     KernelScope = Resolver.BeginKernelScope();
     Resolver.LoadModuleConfiguration <TestConfigServiceBindings>();
 }
 public void Initialize()
 {
     ContainerFactory.Current.KillAllInstances();
     KernelScope = Resolver.BeginKernelScope();
     Resolver.LoadModuleConfiguration <Blueprint>();
 }
Beispiel #15
0
 public ConfigSetTests()
 {
     KernelScope = Resolver.BeginKernelScope();
     Resolver.LoadModuleConfiguration<TestConfigServiceBindings>();
 }
Beispiel #16
0
 public void Initialize()
 {
     KernelScope = Resolver.BeginKernelScope();
     Resolver.LoadModuleConfiguration <TestBinding>();
     Resolver.GetConfigurator().UnBind <IReplaceableSerializer>().AllAndBind().To <JsonReplaceableSerializer>().SetSingletonScope().AllowOverride = false;
 }
Beispiel #17
0
 public BenchmarkTest()
 {
     KernelScope = Resolver.BeginKernelScope();
     Resolver.LoadModuleConfiguration <Blueprint>();
 }
Beispiel #18
0
 public void Initialize()
 {
     KernelScope = Resolver.BeginKernelScope();
     Resolver.LoadModuleConfiguration <Blueprint>();
     Scope = RequestResponseScopefactory.CreateScope();
 }
Beispiel #19
0
 public BenchmarkTest()
 {
     KernelScope = Resolver.BeginKernelScope();
     Resolver.LoadModuleConfiguration<Blueprint>();
 }
Beispiel #20
0
 public void Initialize()
 {
     KernelScope = Resolver.BeginKernelScope();
     Resolver.LoadModuleConfiguration<TestBinding>();
     Resolver.GetConfigurator().UnBind<IReplaceableSerializer>().AllAndBind().To<JsonReplaceableSerializer>().SetSingletonScope().AllowOverride = false;
 }
Beispiel #21
0
 public void Initialize()
 {
     KernelScope = Resolver.BeginKernelScope();
     Resolver.LoadModuleConfiguration <TestModuleBindingConfiguration>();
 }