Beispiel #1
0
        public Task <ILookupInResult> LookupIn(string id, Action <LookupInSpecBuilder> configureBuilder, LookupInOptions options)
        {
            var lookupInSpec = new LookupInSpecBuilder();

            configureBuilder(lookupInSpec);

            return(LookupIn(id, lookupInSpec.Specs, options));
        }
Beispiel #2
0
        public Task <ILookupInResult> LookupIn(string id, Action <LookupInSpecBuilder> configureBuilder)
        {
            var builder = new LookupInSpecBuilder();

            configureBuilder(builder);

            return(LookupIn(id, builder.Specs, new LookupInOptions()));
        }
Beispiel #3
0
        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));
        }
Beispiel #4
0
        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()));
        }
Beispiel #5
0
        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));
        }
Beispiel #6
0
        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));
        }