示例#1
0
 /// <summary>
 /// Applies json options to all requets to the service.
 /// </summary>
 private static void ApplyJsonOptions(MvcJsonOptions jsonOptions)
 {
     var jsonSettingsProvider = new JsonSettingsProvider(new TypeMapCollection());
     jsonSettingsProvider.PopulateSettings(jsonOptions.SerializerSettings);
 }
 public AutocompleteTagHelper(IHtmlGenerator generator, IOptions<MvcJsonOptions> jsonOptions)
 {
     this.generator = generator;
     this.jsonOptions = jsonOptions.Value;
 }