DependencyResolverExtensions.UseRedis Method (IDependencyResolver, String, Int32, String, Int32, 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, _
db As Integer, _
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 db As Integer
Dim eventKeys As IEnumerable(Of String)
Dim returnValue As IDependencyResolver
returnValue = resolver.UseRedis(server, _
port, password, db, eventKeys)
public static IDependencyResolver UseRedis(
this IDependencyResolver resolver,
string server,
int port,
string password,
int db,
IEnumerable<string> eventKeys
)
[ExtensionAttribute]
public:
static IDependencyResolver^ UseRedis(
IDependencyResolver^ resolver,
String^ server,
int port,
String^ password,
int db,
IEnumerable<String^>^ eventKeys
)
static member UseRedis :
resolver:IDependencyResolver *
server:string *
port:int *
password:string *
db:int *
eventKeys:IEnumerable<string> -> IDependencyResolver
public static function UseRedis(
resolver : IDependencyResolver,
server : String,
port : int,
password : String,
db : int,
eventKeys : IEnumerable<String>
) : IDependencyResolver
Parameters
- resolver
Type: Microsoft.AspNet.SignalR.IDependencyResolver
- server
Type: System.String
- port
Type: System.Int32
- password
Type: System.String
- db
Type: System.Int32
- eventKeys
Type: System.Collections.Generic.IEnumerable<String>
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).