23 lines
		
	
	
		
			813 B
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
		
			813 B
		
	
	
	
		
			C#
		
	
	
	
	
	
| using Core.Blueprint.DAL.Infrastructure.Configure;
 | |
| using Core.Blueprint.DAL.Service.Contracts;
 | |
| using Microsoft.Extensions.Configuration;
 | |
| using Microsoft.Extensions.DependencyInjection;
 | |
| 
 | |
| namespace Core.Blueprint.DAL.Service.Configure
 | |
| {
 | |
|     public static class DependencyInjection
 | |
|     {
 | |
|         public static IServiceCollection RegisterServices(this IServiceCollection services, IConfiguration configuration)
 | |
|         {
 | |
|             services.RegisterInfrastructure(configuration);
 | |
| 
 | |
|             services.AddScoped<IBlueprintService, BlueprintService>();
 | |
|             services.AddScoped<ISampleItemService, SampleItemService>();
 | |
|             services.AddScoped<ISampleImageService, SampleImageService>();
 | |
|             services.AddScoped<ISecretService, SecretService>();
 | |
| 
 | |
|             return services;
 | |
|         }
 | |
|     }
 | |
| }
 | 
