surging icon indicating copy to clipboard operation
surging copied to clipboard

StageModule.cs中为什么要把CPlatform.AppConfig.ServerOptions.DisableServiceRegistration设为true?

Open lemon0614 opened this issue 6 years ago • 3 comments

首先,非常感谢作者的辛苦与付出。 有一个问题望解答,如下: `protected override void RegisterBuilder(ContainerBuilderWrapper builder) { CPlatform.AppConfig.ServerOptions.DisableServiceRegistration = true; var section = CPlatform.AppConfig.GetSection("Stage"); if (section.Exists()) { AppConfig.Options = section.Get<StageOption>(); }

        builder.RegisterType<WebServerListener>().As<IWebServerListener>().SingleInstance(); 
    }`

StageModule.cs中为什么要把CPlatform.AppConfig.ServerOptions.DisableServiceRegistration设为true?

lemon0614 avatar Nov 01 '19 08:11 lemon0614

The service should be divided into intermediate service, aggregation service, and micro service. The micro service needs to be registered to the registration center, but the aggregation service and intermediate service do not need to be registered to the registration center. The stage module component can be loaded to expand the aggregation service and the middle service

fanliang11 avatar Nov 01 '19 08:11 fanliang11

The service should be divided into intermediate service, aggregation service, and micro service. The micro service needs to be registered to the registration center, but the aggregation service and intermediate service do not need to be registered to the registration center. The stage module component can be loaded to expand the aggregation service and the middle service

thanks so much ,now i got it.

lemon0614 avatar Nov 01 '19 10:11 lemon0614

俩中国人搁着飚英文

ligg avatar Nov 11 '19 03:11 ligg