Esempio n. 1
0
 private JsonSerializerSettings postSettings(IWorkspaceFeatureCollection features)
 => SerializerSettings.For(new FilterPropertiesContractResolver(
                               new List <IPropertiesFilter>
 {
     new IgnoreAttributeFilter <IgnoreWhenPostingAttribute>(),
     new RequiresFeatureAttributeFilter(features)
 }));
Esempio n. 2
0
 private JsonSerializerSettings postSettings()
 => SerializerSettings.For(new FilterPropertiesContractResolver(
                               new List <IPropertiesFilter>
 {
     new IgnoreAttributeFilter <IgnoreWhenPostingAttribute>()
 }));