Message.CriticalSection<T> Method (Func<T>)
Invokes a statement within a thread-safe critical section.
Namespace: Microsoft.ConfigurationManagement.Messaging.Framework
Assembly: Microsoft.ConfigurationManagement.Messaging (in Microsoft.ConfigurationManagement.Messaging.dll)
Syntax
protected T CriticalSection<T>(
Func<T> func
)
protected:
generic<typename T>
T CriticalSection(
Func<T>^ func
)
Protected Function CriticalSection(Of T) (
func As Func(Of T)
) As T
Parameters
func
Type: System.Func<T>Function delegate to execute within the critical section.
Return Value
Type: T
Result of the function delegate.
Type Parameters
- T
Return type.
See Also
CriticalSection Overload
Message Class
Microsoft.ConfigurationManagement.Messaging.Framework Namespace
Return to top