Base.IdGenerater.GenerateId C# (CSharp) Method

GenerateId() public static method

public static GenerateId ( ) : long
return long
		public static long GenerateId()
		{
			long time = TimeHelper.ClientNowSeconds();

			return (AppId << 48) + (time << 16) + ++value;
		}
	}

Usage Example

Example #1
0
 protected AChannel(AService service)
 {
     this.Id      = IdGenerater.GenerateId();
     this.service = service;
 }
All Usage Examples Of Base.IdGenerater::GenerateId
IdGenerater