Example #1
0
 // dispose the extensions that implement IDisposable
 protected void DisposeExtensions()
 {
     if (_extensions != null)
     {
         _extensions.Dispose();
         _extensions = null;
     }
 }
Example #2
0
 // locks down the given extensions manager and runs cache metadata on the workflow definition
 protected void RegisterExtensionManager(WorkflowInstanceExtensionManager extensionManager)
 {
     ValidateWorkflow(extensionManager);
     _extensions = WorkflowInstanceExtensionManager.CreateInstanceExtensions(this.WorkflowDefinition, extensionManager);
     if (_extensions != null)
     {
         this.HasPersistenceModule = _extensions.HasPersistenceModule;
     }
 }