/// <summary> /// Retrieve a list of all expired workflow identifiers. /// </summary> protected virtual IList <Guid> LoadExpiredWorkflowIds() { TraceHelper.Trace(); IList <Guid> instanceIds; try { using (IResourceAccessor resourceAccessor = CreateAccessor(this.resourceProvider)) { instanceIds = resourceAccessor.RetrieveExpiredTimerIds(this.serviceId, this.OwnershipTimeout); } } catch (Exception e) { TraceHelper.Trace(unexpectedExceptionText, e); base.RaiseServicesExceptionNotHandledEvent(e, Guid.Empty); instanceIds = new List <Guid>(); } return(instanceIds); }