Beispiel #1
0
        public static void RegisterNetCoreServer <T>(this ServerRegistry reg, string name)
            where T : class
        {
            var netCoreServerBuilder = new NetCoreServerBuilder <T>();

            reg.Register(name, netCoreServerBuilder);
        }
Beispiel #2
0
        public static void RegisterNetCoreServer <T>(this ServerRegistry reg, string name, IConfigurationBuilder config)
            where T : class
        {
            var netCoreServerBuilder = new NetCoreServerBuilder <T>();

            netCoreServerBuilder.WithConfig(config);
            reg.Register(name, netCoreServerBuilder);
        }