예제 #1
0
        public void RegisterHub <T>(Action <CommandProcessorIndexer> configuration)
        {
            CommandProcessorIndexer indexer = new CommandProcessorIndexer();

            configuration?.Invoke(indexer);

            TudaSudaHubs.Types.Add(typeof(T), indexer.Types);
            TudaSudaHubs.ConnectedUsers.Add(typeof(T), new ConcurrentDictionary <Guid, HashSet <string> >());
        }
예제 #2
0
        public void RegisterHub <T>()
        {
            CommandProcessorIndexer indexer = new CommandProcessorIndexer();

            indexer.RegisterLocalCommands();

            TudaSudaHubs.Types.Add(typeof(T), indexer.Types);
            TudaSudaHubs.ConnectedUsers.Add(typeof(T), new ConcurrentDictionary <Guid, HashSet <string> >());
        }