///<summary> /// Load the specified workflow instance into memory from the /// persistence store. ///</summary> ///<param name="instanceId"> /// The <see cref="T:System.Guid"></see> of the root activity of the workflow instance. /// </param> protected override Activity LoadWorkflowInstanceState(Guid instanceId) { TraceHelper.Trace(); Activity rootActivity = null; try { using (IResourceAccessor resourceAccessor = CreateAccessor(this.resourceProvider)) { byte[] instanceState = resourceAccessor.RetrieveInstanceState( instanceId, serviceId, OwnershipTimeout); rootActivity = RestoreFromDefaultSerializedForm(instanceState, null); } } catch (Exception e) { TraceHelper.Trace(unexpectedExceptionText, e); base.RaiseServicesExceptionNotHandledEvent(e, instanceId); } return(rootActivity); }