Пример #1
0
        /// <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
            });
        }
Пример #2
0
 /// <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>();
 }