38 instantiations of Operation
Microsoft.AspNetCore.JsonPatch.SystemTextJson (24)
JsonPatchDocumentOfT.cs (24)
60
Operations.Add(new
Operation
<TModel>(
84
Operations.Add(new
Operation
<TModel>(
104
Operations.Add(new
Operation
<TModel>(
123
Operations.Add(new
Operation
<TModel>("remove", GetPath(path, null), from: null));
139
Operations.Add(new
Operation
<TModel>(
157
Operations.Add(new
Operation
<TModel>(
176
Operations.Add(new
Operation
<TModel>(
198
Operations.Add(new
Operation
<TModel>(
218
Operations.Add(new
Operation
<TModel>(
238
Operations.Add(new
Operation
<TModel>(
260
Operations.Add(new
Operation
<TModel>(
280
Operations.Add(new
Operation
<TModel>(
303
Operations.Add(new
Operation
<TModel>(
327
Operations.Add(new
Operation
<TModel>(
351
Operations.Add(new
Operation
<TModel>(
377
Operations.Add(new
Operation
<TModel>(
401
Operations.Add(new
Operation
<TModel>(
423
Operations.Add(new
Operation
<TModel>(
445
Operations.Add(new
Operation
<TModel>(
469
Operations.Add(new
Operation
<TModel>(
493
Operations.Add(new
Operation
<TModel>(
519
Operations.Add(new
Operation
<TModel>(
543
Operations.Add(new
Operation
<TModel>(
565
Operations.Add(new
Operation
<TModel>(
Microsoft.AspNetCore.JsonPatch.SystemTextJson.Tests (14)
JsonPatchDocumentJObjectTest.cs (12)
21
patch.Operations.Add(new
Operation
<ObjectWithJObject>("add", "/CustomData/Emails/-", null, "foo@baz.com"));
37
patch.Operations.Add(new
Operation
<ObjectWithJObject>("test", "/CustomData/Email", null, "foo@baz.com"));
38
patch.Operations.Add(new
Operation
<ObjectWithJObject>("add", "/CustomData/Name", null, "Bar Baz"));
51
patch.Operations.Add(new
Operation
<ObjectWithJObject>("test", "/CustomData/Email", null, "foo@bar.com"));
52
patch.Operations.Add(new
Operation
<ObjectWithJObject>("add", "/CustomData/Name", null, "Bar Baz"));
68
patch.Operations.Add(new
Operation
<ObjectWithJObject>("copy", "/CustomData/UserName", "/CustomData/Email"));
84
patch.Operations.Add(new
Operation
<ObjectWithJObject>("remove", "/CustomData/LastName", null));
100
patch.Operations.Add(new
Operation
<ObjectWithJObject>("move", "/CustomData/LastName", "/CustomData/FirstName"));
117
patch.Operations.Add(new
Operation
<ObjectWithJObject>("add", "/CustomData/Name", null, "Foo"));
133
patch.Operations.Add(new
Operation
<ObjectWithJObject>("add", "/CustomData/Name", null, null));
150
patch.Operations.Add(new
Operation
<ObjectWithJObject>("replace", "/CustomData/Email", null, "foo@baz.com"));
166
patch.Operations.Add(new
Operation
<ObjectWithJObject>("replace", "/CustomData/Email", null, null));
JsonPatchDocumentTest.cs (2)
101
doc.Operations.Add(new Operations.
Operation
<Organization>("add", "/Employees/0/AnnualSalary", "", 100));
248
var operation = new
Operation
<SimpleObject>
15 references to Operation
Microsoft.AspNetCore.JsonPatch.SystemTextJson (14)
Converters\JsonConverterForJsonPatchDocumentOfT.cs (9)
15
private static JsonConverter<
Operation
<T>> GetConverter(JsonSerializerOptions options) =>
16
(JsonConverter<
Operation
<T>>)options.GetConverter(typeof(
Operation
<T>));
35
List<
Operation
<T>> ops = [];
38
JsonConverter<
Operation
<T>> operationConverter = GetConverter(options);
41
var
op = operationConverter.Read(ref reader, typeof(
Operation
<T>), options);
61
JsonConverter<
Operation
<T>> operationConverter = GetConverter(options);
63
foreach (
var
operation in value.Operations)
JsonPatchDocumentOfT.cs (5)
30
public List<
Operation
<TModel>> Operations { get; private set; }
42
public JsonPatchDocument(List<
Operation
<TModel>> operations, JsonSerializerOptions serializerOptions)
605
foreach (
var
op in Operations)
633
foreach (
var
op in Operations)
645
foreach (
var
op in Operations)
Microsoft.AspNetCore.JsonPatch.SystemTextJson.Tests (1)
JsonPatchDocumentTest.cs (1)
248
var
operation = new Operation<SimpleObject>