Skip to content

Commit

Permalink
made ctor of HubProxy<T,T2> public
Browse files Browse the repository at this point in the history
  • Loading branch information
Andreas Bieber committed Feb 23, 2015
1 parent a12dc19 commit e875394
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions SignalR.Client.TypedHubProxy/HubProxy.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,12 @@ public class HubProxy<TServerHubInterface, TClientInterface> : IHubProxy<TServer
private readonly Dictionary<Hubs.Subscription, Action<IList<Newtonsoft.Json.Linq.JToken>>> _subscriptions =
new Dictionary<Hubs.Subscription, Action<IList<Newtonsoft.Json.Linq.JToken>>>();

internal HubProxy(IHubProxy hubProxy)
/// <summary>
/// Ctor of HubProxy.
/// </summary>
/// <param name="hubProxy">IHubProxy.</param>
/// <exception cref="ArgumentException"></exception>
public HubProxy(IHubProxy hubProxy)
{
if (!typeof(TServerHubInterface).IsInterface)
{
Expand All @@ -42,7 +47,12 @@ internal HubProxy(IHubProxy hubProxy)
_hubProxy = hubProxy;
}

internal HubProxy(HubConnection hubConnection, string hubName)
/// <summary>
/// Ctor of HubProxy.
/// </summary>
/// <param name="hubConnection">HubConnection.</param>
/// <param name="hubName">Name of the hub.</param>
public HubProxy(HubConnection hubConnection, string hubName)
: this(hubConnection.CreateHubProxy(hubName))
{
}
Expand Down

0 comments on commit e875394

Please sign in to comment.