示例#1
0
        /// <summary>
        /// Retrieve a list of all workflow identifiers that no longer have
        /// a valid owner.
        /// </summary>
        protected virtual IList <Guid> LoadNonBlockedWorkflowIds()
        {
            TraceHelper.Trace();

            IList <Guid> instanceIds;

            try
            {
                using (IResourceAccessor resourceAccessor = CreateAccessor(this.resourceProvider))
                {
                    instanceIds = resourceAccessor.RetrieveNonBlockedInstanceIds(this.serviceId, this.OwnershipTimeout);
                }
            }
            catch (Exception e)
            {
                TraceHelper.Trace(unexpectedExceptionText, e);

                base.RaiseServicesExceptionNotHandledEvent(e, Guid.Empty);

                instanceIds = new List <Guid>();
            }

            return(instanceIds);
        }