LockManager.Get<T> Method (String, Func<String, Object>, Func<String, T>, Action<String, T>)
Applies To: Dynamics CRM 2013
Namespace: Microsoft.Xrm.Client.Threading
Assembly: Microsoft.Xrm.Client (in Microsoft.Xrm.Client.dll)
Syntax
public static T Get<T>(
string key,
Func<string, object> loadFromCache,
Func<string, T> loadFromService,
Action<string, T> addToCache
)
public:
generic<typename T>
static T Get(
String^ key,
Func<String^, Object^>^ loadFromCache,
Func<String^, T>^ loadFromService,
Action<String^, T>^ addToCache
)
static member Get<'T> :
key:string *
loadFromCache:Func<string, Object> *
loadFromService:Func<string, 'T> *
addToCache:Action<string, 'T> -> 'T
Public Shared Function Get(Of T) (
key As String,
loadFromCache As Func(Of String, Object),
loadFromService As Func(Of String, T),
addToCache As Action(Of String, T)
) As T
Parameters
- key
Type: System.String
- loadFromCache
Type: System.Func<String, Object>
- loadFromService
Type: System.Func<String, T>
- addToCache
Type: System.Action<String, T>
Return Value
Type: T
Type: {0}.
Type Parameters
- T
See Also
Get Overload
LockManager Class
Microsoft.Xrm.Client.Threading Namespace
Return to top