public Task <ILookupInResult> LookupIn(string id, Action <LookupInSpecBuilder> configureBuilder, LookupInOptions options) { var lookupInSpec = new LookupInSpecBuilder(); configureBuilder(lookupInSpec); return(LookupIn(id, lookupInSpec.Specs, options)); }
public Task <ILookupInResult> LookupIn(string id, Action <LookupInSpecBuilder> configureBuilder) { var builder = new LookupInSpecBuilder(); configureBuilder(builder); return(LookupIn(id, builder.Specs, new LookupInOptions())); }
public static Task <ILookupInResult> LookupInAsync(this ICollection collection, string id, Action <LookupInSpecBuilder> configureBuilder, LookupInOptions options) { var lookupInSpec = new LookupInSpecBuilder(); configureBuilder(lookupInSpec); return(collection.LookupInAsync(id, lookupInSpec.Specs, options)); }
public static Task <ILookupInResult> LookupInAsync(this ICollection collection, string id, Action <LookupInSpecBuilder> configureBuilder) { var builder = new LookupInSpecBuilder(); configureBuilder(builder); return(collection.LookupInAsync(id, builder.Specs, new LookupInOptions())); }
public Task <ILookupInResult> LookupIn(string id, Action <LookupInSpecBuilder> configureBuilder, TimeSpan?timeout = null, CancellationToken token = default(CancellationToken)) { var builder = new LookupInSpecBuilder(); configureBuilder(builder); var options = new LookupInOptions(); ConfigureLookupInOptions(options, timeout, token); return(LookupIn(id, builder.Specs, options)); }
public static Task <ILookupInResult> LookupIn(this ICollection collection, string id, Action <LookupInSpecBuilder> configureBuilder, Action <LookupInOptions> configureOptions) { var builder = new LookupInSpecBuilder(); configureBuilder(builder); var options = new LookupInOptions(); configureOptions(options); return(collection.LookupIn(id, builder.Specs, options)); }