System\Activities\WorkflowApplication.cs (36)
2255IAsyncResult BeginInternalPersist(PersistenceOperation operation, TimeSpan timeout, bool isInternalPersist, AsyncCallback callback, object state)
2265void TrackPersistence(PersistenceOperation operation)
2269if (operation == PersistenceOperation.Complete)
2273else if (operation == PersistenceOperation.Unload)
2284void PersistCore(ref TimeoutHelper timeoutHelper, PersistenceOperation operation)
2373if (operation != PersistenceOperation.Save)
2391if (operation == PersistenceOperation.Complete || operation == PersistenceOperation.Unload)
2430PersistCore(ref timeoutHelper, PersistenceOperation.Save);
2451return new UnloadOrPersistAsyncResult(this, timeout, PersistenceOperation.Save, false, false, callback, state);
2495return this.BeginInternalPersist(PersistenceOperation.Save, ActivityDefaults.InternalSaveTimeout, true, callback, state);
2824PersistenceOperation persistenceOperation;
2828persistenceOperation = PersistenceOperation.Complete;
2832persistenceOperation = PersistenceOperation.Unload;
2857return new UnloadOrPersistAsyncResult(this, timeout, PersistenceOperation.Unload, false, false, callback, state);
3439PersistenceOperation operation;
3446public UnloadOrPersistAsyncResult(WorkflowApplication instance, TimeSpan timeout, PersistenceOperation operation,
3454this.isUnloaded = (operation == PersistenceOperation.Unload || operation == PersistenceOperation.Complete);
3530if (this.operation == PersistenceOperation.Unload)
3586if (this.operation == PersistenceOperation.Unload && this.instance.Controller.State == WorkflowInstanceState.Complete)
3588this.operation = PersistenceOperation.Complete;
3868(this.operation == PersistenceOperation.Unload || this.operation == PersistenceOperation.Complete))
3899if (this.operation != PersistenceOperation.Save)
5018PersistenceOperation operation = PersistenceOperation.Unload;
5022operation = PersistenceOperation.Save;
5173result = instance.BeginInternalPersist(PersistenceOperation.Unload, ActivityDefaults.InternalSaveTimeout, true, EventFrameCallback, instance.EventData);
5816this.store.Execute(this.handle, CreateSaveCommand(null, this.instanceMetadata, PersistenceOperation.Save), timeout);
5829return this.store.BeginExecute(this.handle, CreateSaveCommand(null, this.instanceMetadata, PersistenceOperation.Save), timeout, callback, state);
5912static SaveWorkflowCommand CreateSaveCommand(IDictionary<XName, InstanceValue> instance, IDictionary<XName, InstanceValue> instanceMetadata, PersistenceOperation operation)
5916CompleteInstance = operation == PersistenceOperation.Complete,
5917UnlockInstance = operation != PersistenceOperation.Save,
5958public void Save(IDictionary<XName, InstanceValue> instance, PersistenceOperation operation, TimeSpan timeout)
5983public IAsyncResult BeginSave(IDictionary<XName, InstanceValue> instance, PersistenceOperation operation, TimeSpan timeout, AsyncCallback callback, object state)