{"id":22447368,"url":"https://github.com/june-it/mystack.snowflakeid","last_synced_at":"2025-03-27T11:26:36.420Z","repository":{"id":215242909,"uuid":"737973009","full_name":"june-it/MyStack.SnowflakeId","owner":"june-it","description":"开源的轻量级生成雪花Id","archived":false,"fork":false,"pushed_at":"2024-12-18T03:21:42.000Z","size":26,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-01T16:09:58.517Z","etag":null,"topics":["dotnet","mystack","snowflake","snowflake-id"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/june-it.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-01-02T05:28:23.000Z","updated_at":"2024-12-18T03:21:25.000Z","dependencies_parsed_at":"2024-12-03T04:33:11.905Z","dependency_job_id":null,"html_url":"https://github.com/june-it/MyStack.SnowflakeId","commit_stats":null,"previous_names":["june-it/mystack.snowflakeid"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/june-it%2FMyStack.SnowflakeId","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/june-it%2FMyStack.SnowflakeId/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/june-it%2FMyStack.SnowflakeId/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/june-it%2FMyStack.SnowflakeId/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/june-it","download_url":"https://codeload.github.com/june-it/MyStack.SnowflakeId/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245834787,"owners_count":20680080,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dotnet","mystack","snowflake","snowflake-id"],"created_at":"2024-12-06T04:16:17.041Z","updated_at":"2025-03-27T11:26:36.357Z","avatar_url":"https://github.com/june-it.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MyStack.SnowflakeIdGenerator\nOpen-source lightweight Snowflake ID generator\n\n\n| nuget      | stats |\n| ----------- | ----------- |\n| [![nuget](https://img.shields.io/nuget/v/MyStack.SnowflakeIdGenerator.svg?style=flat-square)](https://www.nuget.org/packages/MyStack.SnowflakeIdGenerator)       |  [![stats](https://img.shields.io/nuget/dt/MyStack.SnowflakeIdGenerator.svg?style=flat-square)](https://www.nuget.org/stats/packages/MyStack.SnowflakeIdGenerator?groupby=Version)        |\n\n# Getting Started\n\n## Add Service Support\n\n```\nservices.AddSnowflakeId(configure =\u003e\n{\n    configure.GroupId = context.Configuration.GetValue\u003cushort\u003e(\"SnowflakeIdGenerator:GroupId\");\n    configure.MachineId = context.Configuration.GetValue\u003cushort\u003e(\"SnowflakeIdGenerator:MachineId\");\n});\n```\n\n## Generate a new Snowflake Id\n\n```\nvar snowflakeId = ServiceProvider.GetRequiredService\u003cISnowflakeId\u003e();\nvar id = snowflakeId.NewId();\n```\n\n# License \nMIT","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjune-it%2Fmystack.snowflakeid","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjune-it%2Fmystack.snowflakeid","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjune-it%2Fmystack.snowflakeid/lists"}