23 references to PersistenceOperation
System.ServiceModel.Activities (23)
System\ServiceModel\Activities\Dispatcher\WorkflowServiceInstance.cs (23)
1499void TrackPersistence(PersistenceOperation operation)
1503if (operation == PersistenceOperation.Delete)
1507else if (operation == PersistenceOperation.Unload)
1581return new UnloadOrPersistAsyncResult(this, this.Controller.State == WorkflowInstanceState.Complete ? PersistenceOperation.Delete : PersistenceOperation.Save, false, isTry,
1602return new UnloadOrPersistAsyncResult(this, PersistenceOperation.Save, true, false, TimeSpan.MaxValue, callback, state);
2574return new UnloadOrPersistAsyncResult(this.workflowInstance, PersistenceOperation.Unload, false, false, timeout, callback, state);
2584return new UnloadOrPersistAsyncResult(this.workflowInstance, PersistenceOperation.Unload, false, true, timeout, callback, state);
3350PersistenceOperation operation;
3365public UnloadOrPersistAsyncResult(WorkflowServiceInstance instance, PersistenceOperation operation,
3379this.isUnloaded = (operation == PersistenceOperation.Unload || operation == PersistenceOperation.Delete);
3383this.isIdlePolicyPersist = isTry && operation == PersistenceOperation.Save;
3385if (operation == PersistenceOperation.Unload)
3389else if (operation == PersistenceOperation.Delete)
3393else if (operation == PersistenceOperation.Save)
3483if (this.operation == PersistenceOperation.Unload)
3584if (this.operation == PersistenceOperation.Unload)
3609if (this.operation == PersistenceOperation.Unload && this.instance.Controller.State == WorkflowInstanceState.Complete)
3611this.operation = PersistenceOperation.Delete;
3801if (this.operation == PersistenceOperation.Delete)
3989if (this.operation == PersistenceOperation.Save)
4001this.instance.hasPersistedDeleted = this.operation == PersistenceOperation.Delete;