예제 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ResonanceHub{TCredentials, TServiceInformation, TReportedServiceInformation, TAdapterInformation, THub}"/> class.
 /// </summary>
 /// <param name="proxy">An instance of hub proxy.</param>
 public ResonanceHub(IResonanceHubProxy <TCredentials, TServiceInformation, TReportedServiceInformation, TAdapterInformation> proxy)
 {
     _proxy = proxy;
     _proxy.Init(InvokeClient, GetConnectionId);
 }
예제 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ResonanceHubCore{TCredentials, TServiceInformation, TReportedServiceInformation, TAdapterInformation, THub}"/> class.
 /// </summary>
 /// <param name="context">The hub context.</param>
 /// <param name="proxy">An instance of hub proxy.</param>
 public ResonanceHubCore(IHubContext <THub> context, IResonanceHubProxy <TCredentials, TServiceInformation, TReportedServiceInformation, TAdapterInformation> proxy)
 {
     _context = context;
     _proxy   = proxy;
     _proxy.Init(InvokeClient, GetConnectionId);
 }