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)
54Operations.Add(new Operation("add", PathHelpers.ValidateAndNormalizePath(path), null, value)); 68Operations.Add(new Operation("remove", PathHelpers.ValidateAndNormalizePath(path), null, null)); 83Operations.Add(new Operation("replace", PathHelpers.ValidateAndNormalizePath(path), null, value)); 98Operations.Add(new Operation("test", PathHelpers.ValidateAndNormalizePath(path), null, value)); 114Operations.Add(new Operation("move", PathHelpers.ValidateAndNormalizePath(path), PathHelpers.ValidateAndNormalizePath(from))); 130Operations.Add(new Operation("copy", PathHelpers.ValidateAndNormalizePath(path), PathHelpers.ValidateAndNormalizePath(from))); 208var untypedOp = new Operation();
JsonPatchDocumentOfT.cs (1)
645var untypedOp = new Operation
42 references to Operation
Microsoft.AspNetCore.JsonPatch.SystemTextJson (42)
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 (9)
23public List<Operation> Operations { get; private set; } 30Operations = new List<Operation>(); 34public JsonPatchDocument(List<Operation> operations, JsonSerializerOptions serializerOptions) 166foreach (var op in Operations) 194foreach (var op in Operations) 200IList<Operation> IJsonPatchDocument.GetOperations() 202var allOps = new List<Operation>(Operations?.Count ?? 0); 206foreach (var op in Operations) 208var untypedOp = new Operation();
JsonPatchDocumentOfT.cs (3)
637IList<Operation> IJsonPatchDocument.GetOperations() 639var allOps = new List<Operation>(Operations?.Count ?? 0); 645var untypedOp = new Operation
JsonPatchError.cs (2)
22Operation operation, 40public Operation Operation { get; }