-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Closed
Description
When trying to update to v14-preview, I found that our code no longer compiles because the generated UpdateJsonSerializerSettings
partial method has been changed to become static. This doesn't work for us, because we provide a NuGet package that contains a base class to hook into the serializer settings, in order to support JSON:API partial patch.
For example:
// In our NuGet package
public abstract class JsonApiClient : IJsonApiClient
{
protected void SetSerializerSettingsForJsonApi(JsonSerializerSettings settings)
{
// implementation relies on instance-based state
}
}
// Consumer of our NuGet package
public partial class ExampleApiClient : JsonApiClient
{
partial void UpdateJsonSerializerSettings(JsonSerializerSettings settings)
{
SetSerializerSettingsForJsonApi(settings);
}
}
Would you please consider reverting this change? I can't think of a way to work around it.
Metadata
Metadata
Assignees
Labels
No labels