Exemple #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));
        }
Exemple #2
0
        public Task <ILookupInResult> LookupIn(string id, Action <LookupInSpecBuilder> configureBuilder)
        {
            var builder = new LookupInSpecBuilder();

            configureBuilder(builder);

            return(LookupIn(id, builder.Specs, new LookupInOptions()));
        }
Exemple #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));
        }
Exemple #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()));
        }
Exemple #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));
        }
Exemple #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));
        }