public void DisposeContainer() { servicelocator.Release(_organisationService); _organisationService = null; _container.Dispose(); _container = null; }
public void SetContainer() { //configure the container _container = new NetBpmContainer(new XmlInterpreter("WindsorConfig.xml")); servicelocator = ServiceLocator.Instance; _organisationService = servicelocator.GetService(typeof(IOrganisationService)) as IOrganisationService; }
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; }
public NetBpmContainer(XmlInterpreter interpreter) : base(interpreter) { Init(); if (instance != null) { log.Warn("another NebBpm container is created"); } instance = this; }
public void DisposeContainer() { servicelocator.Release(definitionComponent); definitionComponent = null; servicelocator.Release(executionComponent); executionComponent = null; _container.Dispose(); _container = null; }
public override void Dispose() { base.Dispose(); instance = null; }
public override void Dispose() { base.Dispose(); instance=null; }