You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Connected.Framework/Connected.Data/DataStartup.cs

24 lines
828 B

using Connected.Annotations;
using Connected.Data.DataProtection;
using Connected.Data.Schema;
using Connected.Data.Sharding;
using Connected.Data.Storage;
using Connected.Entities.Storage;
using Microsoft.Extensions.DependencyInjection;
[assembly: MicroService(MicroServiceType.Sys)]
namespace Connected.Data;
internal sealed class DataStartup : Startup
{
protected override void OnConfigureServices(IServiceCollection services)
{
services.AddScoped(typeof(ISchemaService), typeof(SchemaService));
services.AddScoped(typeof(IShardingService), typeof(ShardingService));
services.AddScoped(typeof(IConnectionProvider), typeof(ConnectionProvider));
services.AddScoped(typeof(IStorageProvider), typeof(StorageProvider));
services.AddScoped(typeof(IEntityProtectionService), typeof(EntityProtectionService));
}
}