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