Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
lemon0614 opened this issue Nov 1, 2019 · 3 comments

Comments

@lemon0614
Copy link

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

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

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

@fanliang11
Copy link
Owner

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

@lemon0614
Copy link
Author

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.

@ligg
Copy link

ligg commented Nov 11, 2019

俩中国人搁着飚英文

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants