SequentialGuidGenerator by default
As states in ABP documentation:
IGuidGenerator service creates sequential GUIDs (implemented by the SequentialGuidGenerator by default)
However in many places of the framework SimpleGuidGenerator is used as default, for example in DomainService.cs:
protected IGuidGenerator GuidGenerator => LazyServiceProvider.LazyGetService<IGuidGenerator>(SimpleGuidGenerator.Instance);

I can't find any mentions to inject it manually
services.AddTransient<IGuidGenerator, SequentialGuidGenerator>();
So, is this by design or is this a documentation inaccuracy?
hi
- Your ABP Framework version.
- Steps needed to reproduce the problem.
The SequentialGuidGenerator inherit ITransientDependency by default.
Abp 4.2.2. Tested in console startup template. Inherit HelloWorldService from DomainService. Example: MyCompanyName.MyProjectName.zip
[DependsOn(
typeof(AbpAutofacModule),
typeof(AbpGuidsModule)
)]
public class MyProjectNameModule : AbpModule
SimpleGuidGenerator is enough for a console app.