// This method gets called by the runtime. Use this method to add services to the container. public void ConfigureServices(IServiceCollection services) { services.AddMvc() .SetCompatibilityVersion(CompatibilityVersion.Version_2_1) .AddJsonOptions(options => options.SerializerSettings.Converters.Add(new StringEnumConverter())); services.AddSwagger(); var appStartup = new Setup.Startup(Configuration); appStartup.ConfigureServices(services); }
public Startup(IConfiguration configuration) { Configuration = configuration; _appStartup = new Setup.Startup(configuration); }
public static void AddMicroFlow(this IServiceCollection services, IConfiguration configuration) { var appStartup = new Setup.Startup(configuration); appStartup.ConfigureServices(services); }