LASAPlatform/Infrastructure/Snowflake/Contract/IIdGenerator.cs

30 lines
762 B
C#
Raw Permalink Normal View History

2025-04-23 09:19:29 +08:00
/*
* yitter(yitter@126.com)
* https://github.com/yitter/idgenerator
* MIT
* 使
*
*
*/
using System;
namespace Yitter.IdGenerator
{
public interface IIdGenerator
{
/// <summary>
/// 生成过程中产生的事件
/// </summary>
//Action<OverCostActionArg> GenIdActionAsync { get; set; }
/// <summary>
/// 生成新的long型Id
/// </summary>
/// <returns></returns>
long NewLong();
// Guid NewGuid();
}
}