Share via


DependencyResolverExtensions.UseSqlServer Method (IDependencyResolver, String, Int32)

.NET Framework 4

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

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function UseSqlServer ( _
    resolver As IDependencyResolver, _
    connectionString As String, _
    tableCount As Integer _
) As IDependencyResolver
'Usage
Dim resolver As IDependencyResolver 
Dim connectionString As String 
Dim tableCount As Integer 
Dim returnValue As IDependencyResolver 

returnValue = resolver.UseSqlServer(connectionString, _
    tableCount)
public static IDependencyResolver UseSqlServer(
    this IDependencyResolver resolver,
    string connectionString,
    int tableCount
)
[ExtensionAttribute]
public:
static IDependencyResolver^ UseSqlServer(
    IDependencyResolver^ resolver, 
    String^ connectionString, 
    int tableCount
)
static member UseSqlServer : 
        resolver:IDependencyResolver * 
        connectionString:string * 
        tableCount:int -> IDependencyResolver
public static function UseSqlServer(
    resolver : IDependencyResolver, 
    connectionString : String, 
    tableCount : int
) : 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

UseSqlServer Overload

Microsoft.AspNet.SignalR Namespace