示例#1
0
 /// <summary>
 /// Configure a search context with a <see cref="ContextSettings"/> instance.
 /// </summary>
 /// <param name="context">The search context to alter.</param>
 /// <param name="settings">The settings to configure in the search context.</param>
 /// <returns>A <see cref="SearchContext"/> instance with new configuration settings.</returns>
 public static SearchContext WithConfiguration(this SearchContext context,
                                               ContextSettings settings)
 {
     return(new SearchContext(context.Services, settings));
 }