/// <summary> /// The Initialize /// </summary> /// <param name="services">The services<see cref="IServiceCollection"/></param> /// <param name="options">The options<see cref="BootstrapOptions"/></param> public static void Initialize(IServiceCollection services, BootstrapOptions options) { services.AddTransient <ITicketService, TicketService>(); // Data Access DataAccess.Bootstrap.Initialize( services, new DataAccess.BootstrapOptions { ConnectionString = options.ConnectionString }); }
/// <summary> /// The Initialize /// </summary> /// <param name="services">The services<see cref="IServiceCollection"/></param> /// <param name="options">The options<see cref="BootstrapOptions"/></param> public static void Initialize(IServiceCollection services, BootstrapOptions options) { services.AddTransient <ITicketService, TicketService>(); }