Beispiel #1
0
        /// <inheritdoc />
        public void AddTo(IServiceCollection services)
        {
            var deliveryServices = new DeliveryServiceCollection(services);

            ConfigureDeliveryServices(deliveryServices);

            services.AddSingleton(serviceProvider => new DeliveryServiceProvider(serviceProvider));
        }
Beispiel #2
0
 /// <summary>
 /// Configures selivery services.
 /// </summary>
 /// <param name="services">Delivery services collection.</param>
 protected abstract void ConfigureDeliveryServices(DeliveryServiceCollection services);