Exemple #1
0
        /// <summary>
        /// Startup
        /// </summary>
        public Startup()
        {
            string basePath = AppDomain.CurrentDomain.BaseDirectory ?? string.Empty;
            var    config   = new WebAPIStartupConfig
            {
                AppName             = "Authority",
                SwaggerXmlPathArray = new[]
                {
                    $"{basePath}/Authority.Server.xml",
                    $"{basePath}/Authority.PresentationModel.xml",
                    $"{basePath}/Authority.DataTransmitModel.xml"
                }
            };

            _webAPIStartupHelper = new WebAPIStartupHelper(config);
        }
Exemple #2
0
        /// <summary>
        /// Startup
        /// </summary>
        public Startup()
        {
            string basePath = AppDomain.CurrentDomain.BaseDirectory ?? string.Empty;
            var    config   = new WebAPIStartupConfig
            {
                AppName             = "MateralAPP",
                SwaggerXmlPathArray = new[]
                {
                    $"{basePath}/Materal.APP.Server.xml",
                    $"{basePath}/Materal.APP.DataTransmitModel.xml",
                    $"{basePath}/Materal.APP.PresentationModel.xml"
                }
            };

            _webAPIStartupHelper = new WebAPIStartupHelper(config);
            _webAPIStartupHelper.OnUseEndpoints += WebAPIStartupHelper_OnUseEndpoints;
        }