Share via


TopicLookup.GetOrAdd Method

.NET Framework 4

Namespace:  Microsoft.AspNet.SignalR.Messaging
Assembly:  Microsoft.AspNet.SignalR.Core (in Microsoft.AspNet.SignalR.Core.dll)

Syntax

'Declaration
Public Function GetOrAdd ( _
    key As String, _
    factory As Func(Of String, Topic) _
) As Topic
'Usage
Dim instance As TopicLookup 
Dim key As String 
Dim factory As Func(Of String, Topic)
Dim returnValue As Topic 

returnValue = instance.GetOrAdd(key, factory)
public Topic GetOrAdd(
    string key,
    Func<string, Topic> factory
)
public:
Topic^ GetOrAdd(
    String^ key, 
    Func<String^, Topic^>^ factory
)
member GetOrAdd : 
        key:string * 
        factory:Func<string, Topic> -> Topic
public function GetOrAdd(
    key : String, 
    factory : Func<String, Topic>
) : Topic

Parameters

Return Value

Type: Microsoft.AspNet.SignalR.Messaging.Topic

See Also

Reference

TopicLookup Class

Microsoft.AspNet.SignalR.Messaging Namespace