Share via


DependencyResolverExtensions.UseServiceBus Method

.NET Framework 4

Namespace:  Microsoft.AspNet.SignalR
Assembly:  Microsoft.AspNet.SignalR.ServiceBus (in Microsoft.AspNet.SignalR.ServiceBus.dll)

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function UseServiceBus ( _
    resolver As IDependencyResolver, _
    connectionString As String, _
    topicCount As Integer, _
    instanceCount As Integer, _
    instanceIndex As Integer, _
    topicPrefix As String _
) As IDependencyResolver
'Usage
Dim resolver As IDependencyResolver 
Dim connectionString As String 
Dim topicCount As Integer 
Dim instanceCount As Integer 
Dim instanceIndex As Integer 
Dim topicPrefix As String 
Dim returnValue As IDependencyResolver 

returnValue = resolver.UseServiceBus(connectionString, _
    topicCount, instanceCount, instanceIndex, _
    topicPrefix)
public static IDependencyResolver UseServiceBus(
    this IDependencyResolver resolver,
    string connectionString,
    int topicCount,
    int instanceCount,
    int instanceIndex,
    string topicPrefix
)
[ExtensionAttribute]
public:
static IDependencyResolver^ UseServiceBus(
    IDependencyResolver^ resolver, 
    String^ connectionString, 
    int topicCount, 
    int instanceCount, 
    int instanceIndex, 
    String^ topicPrefix
)
static member UseServiceBus : 
        resolver:IDependencyResolver * 
        connectionString:string * 
        topicCount:int * 
        instanceCount:int * 
        instanceIndex:int * 
        topicPrefix:string -> IDependencyResolver
public static function UseServiceBus(
    resolver : IDependencyResolver, 
    connectionString : String, 
    topicCount : int, 
    instanceCount : int, 
    instanceIndex : int, 
    topicPrefix : String
) : IDependencyResolver

Parameters

Return Value

Type: Microsoft.AspNet.SignalR.IDependencyResolver

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IDependencyResolver. When you use instance method syntax to call this method, omit the first parameter. For more information, see https://msdn.microsoft.com/en-us/library/bb384936(v=vs.100) or https://msdn.microsoft.com/en-us/library/bb383977(v=vs.100).

See Also

Reference

DependencyResolverExtensions Class

Microsoft.AspNet.SignalR Namespace