本文主要是介绍ABP VNext学习日记13,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
1.Microsoft.AspNetCore.Builder.IApplicationBuilder.ApplicationServices
解析:Gets or sets the IServiceProvider that provides access to the application’s service container.
2.Microsoft.Extensions.DependencyInjection.IServiceScopeFactory
解析:A factory for creating instances of IServiceScope, which is used to create services within a scope.
3.IServiceScope Microsoft.Extensions.DependencyInjection.IServiceScopeFactory.CreateScope()
解析:Create an IServiceScope which contains an IServiceProvider used to resolve dependencies from a newly created scope.
4.Microsoft.Extensions.DependencyInjection.IServiceScope.ServiceProvider
解析:The IServiceProvider used to resolve dependencies from the scope.
5.IdentityServer4.EntityFramework.DbContexts.PersistedGrantDbContext
解析:DbContext for the IdentityServer operational data.
6.Client IdentityServer4.EntityFramework.Mappers.ClientMappers.ToEntity(this Client model)
解析:Maps a model to an entity.
7.IdentityBuilder Microsoft.AspNetCore.Identity.IdentityBuilderExtensions.AddDefaultTokenProviders(this IdentityBuilder builder)
解析:Adds the default token providers used to generate tokens for reset passwords, change email and change telephone number operations, and for two factor authentication token generation.
8.Microsoft.EntityFrameworkCore.DbContextOptions
解析:The options to be used by a DbContext. You normally override OnConfiguring(DbContextOptionsBuilder) or use a DbContextOptionsBuilder to create instances of this class and it is not designed to be directly constructed in your application code.
9.IdentityModel.JwtClaimTypes
解析:Commonly used claim types.
10.Volo.Abp.Threading.AsyncHelper
解析:Provides some helper methods to work with async methods.
11.void Volo.Abp.Threading.AsyncHelper.RunSync(Func<Task> action)
解析:Runs a async method synchronously.
12.Microsoft.Extensions.DependencyInjection.IServiceScope.ServiceProvider
解析:The IServiceProvider used to resolve dependencies from the scope.
13.Microsoft.Extensions.Hosting.IHostBuilder
解析:A program initialization abstraction.
14.Volo.Abp.Application.Dtos.PagedResultDto<AuditLogDto>
解析:实现IPagedResult<T>。
15.Volo.Abp.ObjectMapping.IObjectMapper
解析:定义一个简单的接口来自动映射对象。
16.System.Type.Assembly
解析:Gets the Assembly in which the type is declared. For generic types, gets the Assembly in which the generic type is defined.
17.Microsoft.Extensions.Configuration.IConfigurationRoot
解析:表示一个IConfiguration分层的根。
18.Microsoft.Extensions.Logging.ILoggerFactory
解析:Represents a type used to configure the logging system and create instances of ILogger from the registered ILoggerProviders.
19.Volo.Abp.Threading.AsyncHelper
解析:Provides some helper methods to work with async methods.
20.AutoMapper使用场景
解析:
[1]UI和Domain层
[2]Service和Domain层
21.配置AutoMapper和执行映射
解析:
cfg.AddProfile<AppProfile>();cfg.CreateMap<Source, Dest>();
});
var mapper = config.CreateMapper();
或者
IMapper mapper = new Mapper(config);
var dest = mapper.Map<Source, Dest>(new Source());
22.网关服务
解析:基于Ocelot提供聚合所有微服务API接口、限流、熔断等功能,不提供权限聚合服务。
23.CorrelationId
解析:CorrelationId会在请求中产生一个唯一标识,并可以将唯一标识作为一个Header传递到下一请求,以此类推,从而整个链路都可以获取到这个标识,并自主打印到日志当中。
24.void Volo.Abp.Threading.AsyncHelper.RunSync(Func<Task> action)
解析:Runs a async method synchronously.
25.IServiceScope Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.CreateScope(this IServiceProvider provider)
解析:Creates a new IServiceScope that can be used to resolve scoped services.
这篇关于ABP VNext学习日记13的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!