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