Class ServiceProvider
Persistence service provider.
Inheritance
Namespace: Telerik.Windows.Persistence.Services
Assembly: Telerik.Windows.Controls.dll
Syntax
public static class ServiceProvider : Object
Methods
RegisterPersistenceProvider<T>(Type, IPersistenceProvider)
Registers a persistence provider.
Declaration
public static void RegisterPersistenceProvider<T>(Type type, IPersistenceProvider provider)
where T : IPersistenceProvider
Parameters
System.Type
type
The type against which the provider is registered. |
IPersistenceProvider
provider
The provider instance. |
Type Parameters
T
The persistence provider type. |
ResolvePersistenceProvider<T>(Type)
Resolves the persistence provider.
Declaration
public static T ResolvePersistenceProvider<T>(Type ownerType)
where T : IPersistenceProvider
Parameters
System.Type
ownerType
The registered type against the persistence provider. |
Returns
T
|
Type Parameters
T
The persistence provider type. |
UnregisterPersistenceProvider(Type)
Unregisters persistence providers for a specific type.
Declaration
public static bool UnregisterPersistenceProvider(Type ownerType)
Parameters
System.Type
ownerType
The type owner of the persistence providers. |
Returns
System.Boolean
Returns true if the providers associated with the type are unregistered. |
UnregisterPersistenceProvider<T>(Type)
Unregisters the persistence provider.
Declaration
public static bool UnregisterPersistenceProvider<T>(Type ownerType)
where T : IPersistenceProvider
Parameters
System.Type
ownerType
Type of the owner. |
Returns
System.Boolean
|
Type Parameters
T
|