Esempio n. 1
0
        public GetHubsResult Handle(GetHubsRequest request)
        {
            var hubManager = GlobalHost.DependencyResolver.Resolve<IHubManager>();
            if (hubManager == null)
                return new GetHubsResult();

            var hubs = GetHubs(hubManager);
            var result = new GetHubsResult { Hubs = hubs };
            return result;
        }
Esempio n. 2
0
        public GetHubsResult Handle(GetHubsRequest request)
        {
            var hubManager = GlobalHost.DependencyResolver.Resolve <IHubManager>();

            if (hubManager == null)
            {
                return(new GetHubsResult());
            }

            var hubs   = GetHubs(hubManager);
            var result = new GetHubsResult {
                Hubs = hubs
            };

            return(result);
        }