1 type derived from Operation
Microsoft.AspNetCore.JsonPatch.SystemTextJson (1)
Operations\OperationOfT.cs (1)
10public class Operation<TModel> : Operation where TModel : class
8 instantiations of Operation
Microsoft.AspNetCore.JsonPatch.SystemTextJson (8)
JsonPatchDocument.cs (7)
57Operations.Add(new Operation("add", PathHelpers.ValidateAndNormalizePath(path), null, value)); 71Operations.Add(new Operation("remove", PathHelpers.ValidateAndNormalizePath(path), null, null)); 86Operations.Add(new Operation("replace", PathHelpers.ValidateAndNormalizePath(path), null, value)); 101Operations.Add(new Operation("test", PathHelpers.ValidateAndNormalizePath(path), null, value)); 117Operations.Add(new Operation("move", PathHelpers.ValidateAndNormalizePath(path), PathHelpers.ValidateAndNormalizePath(from))); 133Operations.Add(new Operation("copy", PathHelpers.ValidateAndNormalizePath(path), PathHelpers.ValidateAndNormalizePath(from))); 211var untypedOp = new Operation
JsonPatchDocumentOfT.cs (1)
647var untypedOp = new Operation
41 references to Operation
Microsoft.AspNetCore.JsonPatch.SystemTextJson (41)
Adapters\IObjectAdapter.cs (5)
35void Add(Operation operation, object objectToApplyTo); 54void Copy(Operation operation, object objectToApplyTo); 75void Move(Operation operation, object objectToApplyTo); 93void Remove(Operation operation, object objectToApplyTo); 110void Replace(Operation operation, object objectToApplyTo);
Adapters\IObjectAdapterWithTest.cs (1)
30void Test(Operation operation, object objectToApplyTo);
Adapters\ObjectAdapter.cs (11)
59public void Add(Operation operation, object objectToApplyTo) 75Operation operation) 101public void Move(Operation operation, object objectToApplyTo) 117public void Remove(Operation operation, object objectToApplyTo) 132private void Remove(string path, object objectToApplyTo, Operation operationToReport) 153public void Replace(Operation operation, object objectToApplyTo) 177public void Copy(Operation operation, object objectToApplyTo) 200public void Test(Operation operation, object objectToApplyTo) 227Operation operation, 265private static JsonPatchError CreateOperationFailedError(object target, string path, Operation operation, string errorMessage) 273private static JsonPatchError CreatePathNotFoundError(object target, string path, Operation operation, string errorMessage)
Converters\JsonPatchDocumentConverter.cs (9)
14private static JsonConverter<Operation> GetConverter(JsonSerializerOptions options) => 15(JsonConverter<Operation>)options.GetConverter(typeof(Operation)); 34List<Operation> ops = []; 38JsonConverter<Operation> operationConverter = GetConverter(options); 41var op = operationConverter.Read(ref reader, typeof(Operation), options); 61JsonConverter<Operation> operationConverter = GetConverter(options); 64foreach (var operation in value.Operations)
Exceptions\JsonPatchException.cs (1)
11public Operation FailedOperation { get; private set; }
IJsonPatchDocument.cs (1)
14IList<Operation> GetOperations();
JsonPatchDocument.cs (8)
26public List<Operation> Operations { get; private set; } 37public JsonPatchDocument(List<Operation> operations, JsonSerializerOptions serializerOptions) 169foreach (var op in Operations) 197foreach (var op in Operations) 203IList<Operation> IJsonPatchDocument.GetOperations() 205var allOps = new List<Operation>(Operations?.Count ?? 0); 209foreach (var op in Operations) 211var untypedOp = new Operation
JsonPatchDocumentOfT.cs (3)
639IList<Operation> IJsonPatchDocument.GetOperations() 641var allOps = new List<Operation>(Operations?.Count ?? 0); 647var untypedOp = new Operation
JsonPatchError.cs (2)
22Operation operation, 40public Operation Operation { get; }