Esempio n. 1
0
        /// <summary>
        /// Creates the <see cref="IHubManager{THub, T}"/> object.
        /// </summary>
        /// <returns>
        /// <see cref="HubManager{THub, T}"/> with dependency injected services as
        /// <see cref="ManagerProperties{THub, T}"/>.
        /// </returns>
        public HubManager <THub, T> Create()
        {
            var props = new ManagerProperties <THub, T>
            {
                Clients      = _context,
                UserService  = this._userService,
                GroupService = this._groupService
            };

            return(new HubManager <THub, T>(props));
        }
Esempio n. 2
0
 public HubManager(ManagerProperties <THub, T> hubM)
 {
     this._userService  = hubM.UserService;
     this._groupService = hubM.GroupService;
     this._clients      = hubM.Clients;
 }