Share via


DependencyResolverExtensions.UseRedis Method (IDependencyResolver, String, Int32, String, IEnumerable<String>)

.NET Framework 4

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

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function UseRedis ( _
    resolver As IDependencyResolver, _
    server As String, _
    port As Integer, _
    password As String, _
    eventKeys As IEnumerable(Of String) _
) As IDependencyResolver
'Usage
Dim resolver As IDependencyResolver 
Dim server As String 
Dim port As Integer 
Dim password As String 
Dim eventKeys As IEnumerable(Of String)
Dim returnValue As IDependencyResolver 

returnValue = resolver.UseRedis(server, _
    port, password, eventKeys)
public static IDependencyResolver UseRedis(
    this IDependencyResolver resolver,
    string server,
    int port,
    string password,
    IEnumerable<string> eventKeys
)
[ExtensionAttribute]
public:
static IDependencyResolver^ UseRedis(
    IDependencyResolver^ resolver, 
    String^ server, 
    int port, 
    String^ password, 
    IEnumerable<String^>^ eventKeys
)
static member UseRedis : 
        resolver:IDependencyResolver * 
        server:string * 
        port:int * 
        password:string * 
        eventKeys:IEnumerable<string> -> IDependencyResolver
public static function UseRedis(
    resolver : IDependencyResolver, 
    server : String, 
    port : int, 
    password : String, 
    eventKeys : IEnumerable<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

UseRedis Overload

Microsoft.AspNet.SignalR Namespace