📜  选项模式 startup.cs 配置 - C# 代码示例

📅  最后修改于: 2022-03-11 14:48:49.236000             🧑  作者: Mango

代码示例1
// Startup.cs
public class Startup
{
    ...
 
    // This method gets called by the runtime. Use this method to add services to the container.
    public void ConfigureServices(IServiceCollection services)
    {
        ...
 
        services.AddOptions().Bind(Configuration.GetSection("RoundTheCodeSync"));        
    }
}