private Task <ImmutableList <BranchSettings.BranchGroup> > GetConfiguredBranchesOnce(BranchingContext context) { return((from branch in context.BranchGroup select branch).AsNoTracking().ToArrayAsync() .ContinueWith(result => result.Result.Select(EfBranchGroupToModel).ToImmutableList())); }
public EfBranchSettingsAccessor(BranchingContext context) { this.context = context; }