コード例 #1
0
        public void Initialize()
        {
            ContainerFactory.Current.KillAllInstances();
            KernelScope = Resolver.BeginKernelScope();
            Resolver.LoadModuleConfiguration<Blueprint>();

        }
コード例 #2
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);
 }
コード例 #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);
 }
コード例 #4
0
ファイル: TracerTests.cs プロジェクト: JonasSyrstad/Stardust
        public void Initialize()
        {
            KernelScope = Resolver.BeginKernelScope();
            Resolver.LoadModuleConfiguration<Blueprint>();
            Scope = RequestResponseScopefactory.CreateScope();

        }
コード例 #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();
     }
 }
コード例 #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();
     }
 }
コード例 #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();
 }
コード例 #8
0
 public AutoFacIntegrationTests()
 {
     try
     {
         Resolver.LoadIocContainer(new AutoFacFactory());
     }
     catch (Exception)
     {
     }
     KernelScope = Resolver.BeginKernelScope();
     Resolver.LoadModuleConfiguration <AutoFacTestBindings>();
 }
コード例 #9
0
ファイル: WorkflowTest.cs プロジェクト: JonasSyrstad/Stardust
        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();

        }
コード例 #10
0
 public AutoFacIntegrationTests()
 {
     try
     {
         Resolver.LoadIocContainer(new AutoFacFactory());
     }
     catch (Exception)
     {
     }
     KernelScope = Resolver.BeginKernelScope();
     Resolver.LoadModuleConfiguration<AutoFacTestBindings>();
 }
コード例 #11
0
ファイル: TypeMapTests.cs プロジェクト: JonasSyrstad/Stardust
 public void Initialize()
 {
     KernelScope = Resolver.BeginKernelScope();
     Resolver.LoadModuleConfiguration <Blueprint>();
 }
コード例 #12
0
        public void Initialize()
        {
            KernelScope = Resolver.BeginKernelScope();
            Resolver.LoadModuleConfiguration<Blueprint>();

        }
コード例 #13
0
 public ConfigSetTests()
 {
     KernelScope = Resolver.BeginKernelScope();
     Resolver.LoadModuleConfiguration <TestConfigServiceBindings>();
 }
コード例 #14
0
 public void Initialize()
 {
     ContainerFactory.Current.KillAllInstances();
     KernelScope = Resolver.BeginKernelScope();
     Resolver.LoadModuleConfiguration <Blueprint>();
 }
コード例 #15
0
 public ConfigSetTests()
 {
     KernelScope = Resolver.BeginKernelScope();
     Resolver.LoadModuleConfiguration<TestConfigServiceBindings>();
 }
コード例 #16
0
ファイル: PoolTests.cs プロジェクト: JonasSyrstad/Stardust
 public void Initialize()
 {
     KernelScope = Resolver.BeginKernelScope();
     Resolver.LoadModuleConfiguration <TestBinding>();
     Resolver.GetConfigurator().UnBind <IReplaceableSerializer>().AllAndBind().To <JsonReplaceableSerializer>().SetSingletonScope().AllowOverride = false;
 }
コード例 #17
0
 public BenchmarkTest()
 {
     KernelScope = Resolver.BeginKernelScope();
     Resolver.LoadModuleConfiguration <Blueprint>();
 }
コード例 #18
0
ファイル: TracerTests.cs プロジェクト: JonasSyrstad/Stardust
 public void Initialize()
 {
     KernelScope = Resolver.BeginKernelScope();
     Resolver.LoadModuleConfiguration <Blueprint>();
     Scope = RequestResponseScopefactory.CreateScope();
 }
コード例 #19
0
 public BenchmarkTest()
 {
     KernelScope = Resolver.BeginKernelScope();
     Resolver.LoadModuleConfiguration<Blueprint>();
 }
コード例 #20
0
ファイル: PoolTests.cs プロジェクト: JonasSyrstad/Stardust
 public void Initialize()
 {
     KernelScope = Resolver.BeginKernelScope();
     Resolver.LoadModuleConfiguration<TestBinding>();
     Resolver.GetConfigurator().UnBind<IReplaceableSerializer>().AllAndBind().To<JsonReplaceableSerializer>().SetSingletonScope().AllowOverride = false;
 }
コード例 #21
0
 public void Initialize()
 {
     KernelScope = Resolver.BeginKernelScope();
     Resolver.LoadModuleConfiguration <TestModuleBindingConfiguration>();
 }