5 implementations of IAdapter
Microsoft.AspNetCore.JsonPatch (5)
Internal\DictionaryAdapterOfTU.cs (1)
15
public class DictionaryAdapter<TKey, TValue> :
IAdapter
Internal\DynamicObjectAdapter.cs (1)
19
public class DynamicObjectAdapter :
IAdapter
Internal\JObjectAdapter.cs (1)
10
public class JObjectAdapter :
IAdapter
Internal\ListAdapter.cs (1)
18
public class ListAdapter :
IAdapter
Internal\PocoAdapter.cs (1)
16
public class PocoAdapter :
IAdapter
27 references to IAdapter
Microsoft.AspNetCore.JsonPatch (14)
Adapters\AdapterFactory.cs (3)
14
/// The default AdapterFactory to be used for resolving <see cref="
IAdapter
"/>.
22
public virtual
IAdapter
Create(object target, IContractResolver contractResolver)
41
return (
IAdapter
)Activator.CreateInstance(type);
Adapters\IAdapterFactory.cs (4)
10
/// Defines the operations used for loading an <see cref="
IAdapter
"/> based on the current object and ContractResolver.
15
/// Creates an <see cref="
IAdapter
"/> for the current object
19
/// <returns>The needed <see cref="
IAdapter
"/></returns>
21
IAdapter
Create(object target, IContractResolver contractResolver);
Adapters\ObjectAdapter.cs (5)
84
if (!visitor.TryVisit(ref target, out
var
adapter, out var errorMessage))
139
if (!visitor.TryVisit(ref target, out
var
adapter, out var errorMessage))
163
if (!visitor.TryVisit(ref target, out
var
adapter, out var errorMessage))
213
if (!visitor.TryVisit(ref target, out
var
adapter, out var errorMessage))
244
if (!visitor.TryVisit(ref target, out
var
adapter, out var errorMessage))
Internal\ObjectVisitor.cs (2)
43
public bool TryVisit(ref object target, out
IAdapter
adapter, out string errorMessage)
78
private
IAdapter
SelectAdapter(object targetObject)
Microsoft.AspNetCore.JsonPatch.Tests (13)
Adapters\AdapterFactoryTests.cs (4)
25
IAdapter
adapter = factory.Create(new List<string>(), new DefaultContractResolver());
38
IAdapter
adapter = factory.Create(new Dictionary<string, string>(), new DefaultContractResolver());
54
IAdapter
adapter = factory.Create(new PocoModel(), new DefaultContractResolver());
67
IAdapter
adapter = factory.Create(new TestDynamicObject(), new DefaultContractResolver());
Internal\ObjectVisitorTest.cs (9)
51
var visitStatus = visitor.TryVisit(ref targetObject, out
var
adapter, out var message);
84
var visitStatus = visitor.TryVisit(ref targetObject, out
var
adapter, out var message);
114
var visitStatus = visitor.TryVisit(ref targetObject, out
var
adapter, out var message);
146
var visitStatus = visitor.TryVisit(ref targetObject, out
var
adapter, out var message);
166
var visitStatus = visitor.TryVisit(ref targetObject, out
var
adapter, out var message);
184
var visitStatus = visitor.TryVisit(ref targetObject, out
var
adapter, out var message);
200
var visitStatus = visitor.TryVisit(ref targetObject, out
var
adapter, out var message);
216
var visitStatus = visitor.TryVisit(ref target, out
var
adapter, out var message);
232
var visitStatus = visitor.TryVisit(ref target, out
var
adapter, out var message);