IReliableObjectStateManager.GetOrAddAsync Method (Uri, TimeSpan)
Namespace: Microsoft.ServiceFabric.Data
Assembly: Microsoft.ServiceFabric.Data (in Microsoft.ServiceFabric.Data.dll)
Usage
'Usage
Dim instance As IReliableObjectStateManager
Dim name As Uri
Dim timeout As TimeSpan
Dim returnValue As Task(Of T)
returnValue = instance.GetOrAddAsync(name, timeout)
Syntax
'Declaration
Function GetOrAddAsync(Of T As IReliableObject) ( _
name As Uri, _
timeout As TimeSpan _
) As Task(Of T)
Task<T> GetOrAddAsync<T> (
Uri name,
TimeSpan timeout
) where T : IReliableObject
generic<typename T> where T : IReliableObject
Task<T>^ GetOrAddAsync (
Uri^ name,
TimeSpan timeout
)
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
Development Platforms
Windows Vista, Windows 7, Windows Server 2008, Windows 8.1, Windows Server 2012 R2, Windows 8 and Windows Server 2012
Target Platforms
See Also
Reference
IReliableObjectStateManager Interface
IReliableObjectStateManager Members
Microsoft.ServiceFabric.Data Namespace