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.
20 lines
535 B
20 lines
535 B
1 year ago
|
using Volo.Abp.Modularity;
|
||
|
using Win.Abp.Snowflakes;
|
||
|
|
||
|
namespace Win.Abp.Snowflakes.Test
|
||
|
{
|
||
|
[DependsOn(
|
||
|
typeof(AbpSnowflakeGeneratorModule)
|
||
|
)]
|
||
|
public class SnowflakesTestModule : AbpModule
|
||
|
{
|
||
|
public override void ConfigureServices(ServiceConfigurationContext context)
|
||
|
{
|
||
|
Configure<AbpSnowflakeIdGeneratorOptions>(options =>
|
||
|
{
|
||
|
options.DefaultDatacenterId = 2;
|
||
|
options.DefaultWorkerId = 4;
|
||
|
});
|
||
|
}
|
||
|
}
|
||
|
}
|