void EnsureQueryResolver(AppFactory factory) {
   if (resolver_ == null) {
     resolver_ = (cache_provider_ == null)
       ? factory.CreateQueryResolver()
       : factory.CreateQueryResolver(cache_provider_);
   }
 }
 /// <summary>
 /// Creates an instance of the <see cref="QueryServer"/> object.
 /// </summary>
 /// <returns>
 /// The newly created <see cref="QueryServer"/> object.
 /// </returns>
 public QueryServer Build() {
   IQuerySettings settings = GetSettings();
   var factory = new AppFactory(settings);
   EnsureQueryResolver(factory);
   EnsureQueryProcessor(factory);
   return new QueryServer(this);
 }
 void EnsureQueryResolver(AppFactory factory)
 {
     if (resolver_ == null)
     {
         resolver_ = (cache_provider_ == null)
 ? factory.CreateQueryResolver()
 : factory.CreateQueryResolver(cache_provider_);
     }
 }
            /// <summary>
            /// Creates an instance of the <see cref="QueryServer"/> object.
            /// </summary>
            /// <returns>
            /// The newly created <see cref="QueryServer"/> object.
            /// </returns>
            public QueryServer Build()
            {
                IQuerySettings settings = GetSettings();
                var            factory  = new AppFactory(settings);

                EnsureQueryResolver(factory);
                EnsureQueryProcessor(factory);
                return(new QueryServer(this));
            }
 void EnsureQueryProcessor(AppFactory factory) {
   if (processor_ == null) {
     processor_ = factory.CreateQueryProcessor(resolver_);
   }
 }