<commit_before>﻿using Microsoft.AspNet.SignalR;
using Owin;

namespace PocketHub.Server.Lib.SignalRHubs
{
    public abstract class HubsRegistryBase
    {
        protected abstract void RegisterHubs();
        protected abstract T    ResolveHub<T>();


        public void Configuration(IAppBuilder app)
        {
            RegisterHubs();

            app.MapSignalR();
        }


        protected void Register<T>()
            => GlobalHost.DependencyResolver<commit_msg>Added override method for setting GlobalHost SignalR configurations.<commit_after>﻿using Microsoft.AspNet.SignalR;
using Owin;

namespace PocketHub.Server.Lib.SignalRHubs
{
    public abstract class HubsRegistryBase
    {
        protected abstract void RegisterHubs();
        protected abstract T    ResolveHub<T>();


        public void Configuration(IAppBuilder app)
        {
            RegisterHubs();

            app.MapSignalR();

            SetGlobalHostConfigurations();
        }


        protected virtual void SetGlobalHostConfigurations()
        {
        }


        protected void Register<T>()
            => GlobalHost.DependencyResolver
{'fraction_non_alphanumeric': 0.07543859649122807, 'fraction_numerical': 0.0, 'mean_word_length': 2.4059701492537315, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6738187', 'n_tokens_mistral': 287, 'n_tokens_neox': 274, 'n_words': 67}