private JsonDeserializingFactory <Schematized> InitializeJsonDeserializingFactory() { JsonDeserializingFactory <Schematized> result = new SchematizedJsonDeserializingFactory() { Extensions = this.Extensions, GroupDeserializationBehavior = this.GroupDeserializationBehavior, PatchRequest2DeserializationBehavior = this.PatchRequestDeserializationBehavior, UserDeserializationBehavior = this.UserDeserializationBehavior }; return(result); }
private Schematized CreatePatchRequest(IReadOnlyDictionary <string, object> json) { if (null == json) { throw new ArgumentNullException(nameof(json)); } if (this.TryCreatePatchRequest2Legacy(json, out Schematized result)) { return(result); } if (SchematizedJsonDeserializingFactory.TryCreatePatchRequest2Compliant(json, out result)) { return(result); } throw new InvalidOperationException( SystemForCrossDomainIdentityManagementProtocolResources.ExceptionInvalidRequest); }