Skip to content
  • P
    Projects
  • G
    Groups
  • S
    Snippets
  • Help

丁松杰 / Pole

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Issues 0
  • Merge Requests 0
  • Pipelines
  • Wiki
  • Snippets
  • Members
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Branches
  • Tags
  • Contributors
  • Graph
  • Compare
  • Charts
Switch branch/tag
  • Pole
  • test
  • Pole.Core.Test
  • Utils
  • SnowflakeIdGeneratorTest.cs
Find file
BlameHistoryPermalink
  • 丁松杰's avatar
    完成 consumer 消费时 调用 orleans grain , grain 的id 由 eventid 决定,每一个类型的 event 每毫秒支持生成… · 988776d9
    完成 consumer 消费时 调用 orleans grain , grain 的id 由 eventid 决定,每一个类型的 event 每毫秒支持生成 64个 event ,并且在 k8s集群里 全局唯一
    丁松杰 committed 5 years ago
    988776d9
SnowflakeIdGeneratorTest.cs 260 Bytes
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
using System;
using Xunit;

namespace Pole.Core.Test
{
    public class SnowflakeIdGeneratorTest
    {
        [Fact]
        public void MaxYears()
        {
            var years = -1L ^ (-1L << 6);
            Console.WriteLine(years);
        }
    }
}