public static void Run()
 {
     SetAutofacContainer();
     //Configure AutoMapper
     AutoMapperConfiguration.Configure();
 }
Пример #2
0
        //private static readonly byte[] _homePayload = Encoding.UTF8.GetBytes("Endpoint Routing sample endpoints:" + Environment.NewLine + "/plaintext");


        public Startup(IConfiguration configuration)
        {
            Configuration = configuration;
            AutoMapperConfiguration.InitializeAutoMapper();
            _siteSetting = configuration.GetSection(nameof(SiteSettings)).Get <SiteSettings>();
        }