Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added xml comments for redis dependency resolver extensions.

  • Loading branch information...
commit b877760b25c5e897e13fa3c49572c7918a173ed0 1 parent e9a9989
David Fowler davidfowl authored
19 src/Microsoft.AspNet.SignalR.Redis/DependencyResolverExtensions.cs
View
@@ -8,11 +8,30 @@ namespace Microsoft.AspNet.SignalR
{
public static class DependencyResolverExtensions
{
+ /// <summary>
+ /// Use the Redis backplane for SignalR.
+ /// </summary>
+ /// <param name="resolver">The dependency resolver.</param>
+ /// <param name="server">The redis server.</param>
+ /// <param name="port">The redis port.</param>
+ /// <param name="password">The redis server password.</param>
+ /// <param name="eventKeys">The event keys.</param>
+ /// <returns>The dependency resolver</returns>
public static IDependencyResolver UseRedis(this IDependencyResolver resolver, string server, int port, string password, IEnumerable<string> eventKeys)
{
return UseRedis(resolver, server, port, password, db: 0, eventKeys: eventKeys);
}
+ /// <summary>
+ /// Use the Redis backplane for SignalR.
+ /// </summary>
+ /// <param name="resolver">The dependency resolver.</param>
+ /// <param name="server">The redis server.</param>
+ /// <param name="port">The redis port.</param>
+ /// <param name="password">The redis server password.</param>
+ /// <param name="db">The database to use</param>
+ /// <param name="eventKeys">The event keys.</param>
+ /// <returns></returns>
public static IDependencyResolver UseRedis(this IDependencyResolver resolver, string server, int port, string password, int db, IEnumerable<string> eventKeys)
{
var bus = new Lazy<RedisMessageBus>(() => new RedisMessageBus(server, port, password, db, eventKeys, resolver));
2  src/Microsoft.AspNet.SignalR.Redis/Microsoft.AspNet.SignalR.Redis.csproj
View
@@ -23,6 +23,7 @@
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
+ <DocumentationFile>bin\Debug\Microsoft.AspNet.SignalR.Redis.XML</DocumentationFile>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
@@ -31,6 +32,7 @@
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
+ <DocumentationFile>bin\Release\Microsoft.AspNet.SignalR.Redis.XML</DocumentationFile>
</PropertyGroup>
<ItemGroup>
<Reference Include="BookSleeve, Version=1.2.0.2, Culture=neutral, PublicKeyToken=9056fda458ff61cf, processorArchitecture=MSIL">
Please sign in to comment.
Something went wrong with that request. Please try again.