コード例 #1
0
        public void DisposeContainer()
        {
            servicelocator.Release(_organisationService);
            _organisationService = null;

            _container.Dispose();
            _container = null;
        }
コード例 #2
0
        public void SetContainer()
        {
            //configure the container
            _container = new NetBpmContainer(new XmlInterpreter("WindsorConfig.xml"));
            servicelocator = ServiceLocator.Instance;
            _organisationService = servicelocator.GetService(typeof(IOrganisationService)) as IOrganisationService;

        }
コード例 #3
0
ファイル: BaseTest.cs プロジェクト: JackWangCUMT/netbpm
 public void SetContainer()
 {
     //configure the container
     _container = new NetBpmContainer(new XmlInterpreter("WindsorConfig.xml"));
     servicelocator = ServiceLocator.Instance;
     processDefinitionService = servicelocator.GetService(typeof(IProcessDefinitionService)) as IProcessDefinitionService;
     executionComponent = servicelocator.GetService(typeof(IExecutionApplicationService)) as IExecutionApplicationService;
 }
コード例 #4
0
 public NetBpmContainer(XmlInterpreter interpreter) : base(interpreter)
 {
     Init();
     if (instance != null)
     {
         log.Warn("another NebBpm container is created");
     }
     instance = this;
 }
コード例 #5
0
		public NetBpmContainer(XmlInterpreter interpreter) : base(interpreter)
		{
			Init();
			if (instance != null)
			{
				log.Warn("another NebBpm container is created");
			}
			instance = this;
		}
コード例 #6
0
ファイル: DefinitionTest.cs プロジェクト: JackWangCUMT/netbpm
        public void DisposeContainer()
        {
            servicelocator.Release(definitionComponent);
            definitionComponent = null;
            servicelocator.Release(executionComponent);
            executionComponent = null;

            _container.Dispose();
            _container = null;
        }
コード例 #7
0
 public override void Dispose()
 {
     base.Dispose();
     instance = null;
 }
コード例 #8
0
		public override void Dispose()
		{
			base.Dispose();	
			instance=null;
		}