Exemple #1
0
 /// <summary>
 /// Returns <c>true</c> if all of the
 /// </summary>
 /// <param name="context"></param>
 /// <returns></returns>
 public bool IsFinished(InstanceContext <TInstance> context)
 {
     return(GetItems(context).All(i => accessor.GetStatus(context, i) != MultiRequestItemStatus.Pending));
 }
 /// <summary>
 /// Initializes a new instance.
 /// </summary>
 /// <param name="context"></param>
 /// <param name="accessor"></param>
 /// <param name="state"></param>
 public MultiRequestFinishedItem(InstanceContext <TInstance> context, IMultiRequestStateAccessor <TInstance, TState, TRequest, TResponse> accessor, TState state)
 {
     Status   = accessor.GetStatus(context, state);
     Response = accessor.GetResponse(context, state);
     Fault    = accessor.GetFault(context, state);
 }