├── .github └── workflows │ └── integration-test.yml ├── CosId.sln ├── Directory.Build.props ├── LICENSE ├── README.md ├── src ├── CosId.Proxy │ ├── CosId.Proxy.csproj │ ├── ProxyIdSegmentDistributor.cs │ ├── ProxyIdSegmentDistributorFactory.cs │ └── ProxyMachineIdDistributor.cs └── CosId │ ├── Converter │ └── ToStringIdConverter.cs │ ├── CosId.cs │ ├── CosId.csproj │ ├── IIdConverter.cs │ ├── IIdGenerator.cs │ ├── Provider │ └── IIdGeneratorProvider.cs │ ├── Segment │ ├── IIdSegment.cs │ ├── IIdSegmentDistributor.cs │ ├── IIdSegmentDistributorFactory.cs │ ├── ISegmentId.cs │ ├── IdSegmentDistributorDefinition.cs │ └── SegmentChainId.cs │ ├── Snowflake │ ├── ISnowflakeId.cs │ └── Machine │ │ ├── IMachineIdDistributor.cs │ │ ├── InstanceId.cs │ │ └── MachineId.cs │ └── StringIdGenerator.cs └── test ├── CosId.Benchmarks ├── CosId.Benchmarks.csproj └── Program.cs ├── CosId.Proxy.Tests ├── CosId.Proxy.Tests.csproj └── ProxyIdSegmentDistributorTest.cs └── CosId.Tests ├── Converter └── ToStringIdConverterTest.cs ├── CosId.Tests.csproj └── StringIdGeneratorTest.cs /.github/workflows/integration-test.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ahoo-Wang/CosId-CSharp/HEAD/.github/workflows/integration-test.yml -------------------------------------------------------------------------------- /CosId.sln: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ahoo-Wang/CosId-CSharp/HEAD/CosId.sln -------------------------------------------------------------------------------- /Directory.Build.props: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ahoo-Wang/CosId-CSharp/HEAD/Directory.Build.props -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ahoo-Wang/CosId-CSharp/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ahoo-Wang/CosId-CSharp/HEAD/README.md -------------------------------------------------------------------------------- /src/CosId.Proxy/CosId.Proxy.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ahoo-Wang/CosId-CSharp/HEAD/src/CosId.Proxy/CosId.Proxy.csproj -------------------------------------------------------------------------------- /src/CosId.Proxy/ProxyIdSegmentDistributor.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ahoo-Wang/CosId-CSharp/HEAD/src/CosId.Proxy/ProxyIdSegmentDistributor.cs -------------------------------------------------------------------------------- /src/CosId.Proxy/ProxyIdSegmentDistributorFactory.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ahoo-Wang/CosId-CSharp/HEAD/src/CosId.Proxy/ProxyIdSegmentDistributorFactory.cs -------------------------------------------------------------------------------- /src/CosId.Proxy/ProxyMachineIdDistributor.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ahoo-Wang/CosId-CSharp/HEAD/src/CosId.Proxy/ProxyMachineIdDistributor.cs -------------------------------------------------------------------------------- /src/CosId/Converter/ToStringIdConverter.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ahoo-Wang/CosId-CSharp/HEAD/src/CosId/Converter/ToStringIdConverter.cs -------------------------------------------------------------------------------- /src/CosId/CosId.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ahoo-Wang/CosId-CSharp/HEAD/src/CosId/CosId.cs -------------------------------------------------------------------------------- /src/CosId/CosId.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ahoo-Wang/CosId-CSharp/HEAD/src/CosId/CosId.csproj -------------------------------------------------------------------------------- /src/CosId/IIdConverter.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ahoo-Wang/CosId-CSharp/HEAD/src/CosId/IIdConverter.cs -------------------------------------------------------------------------------- /src/CosId/IIdGenerator.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ahoo-Wang/CosId-CSharp/HEAD/src/CosId/IIdGenerator.cs -------------------------------------------------------------------------------- /src/CosId/Provider/IIdGeneratorProvider.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ahoo-Wang/CosId-CSharp/HEAD/src/CosId/Provider/IIdGeneratorProvider.cs -------------------------------------------------------------------------------- /src/CosId/Segment/IIdSegment.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ahoo-Wang/CosId-CSharp/HEAD/src/CosId/Segment/IIdSegment.cs -------------------------------------------------------------------------------- /src/CosId/Segment/IIdSegmentDistributor.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ahoo-Wang/CosId-CSharp/HEAD/src/CosId/Segment/IIdSegmentDistributor.cs -------------------------------------------------------------------------------- /src/CosId/Segment/IIdSegmentDistributorFactory.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ahoo-Wang/CosId-CSharp/HEAD/src/CosId/Segment/IIdSegmentDistributorFactory.cs -------------------------------------------------------------------------------- /src/CosId/Segment/ISegmentId.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ahoo-Wang/CosId-CSharp/HEAD/src/CosId/Segment/ISegmentId.cs -------------------------------------------------------------------------------- /src/CosId/Segment/IdSegmentDistributorDefinition.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ahoo-Wang/CosId-CSharp/HEAD/src/CosId/Segment/IdSegmentDistributorDefinition.cs -------------------------------------------------------------------------------- /src/CosId/Segment/SegmentChainId.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ahoo-Wang/CosId-CSharp/HEAD/src/CosId/Segment/SegmentChainId.cs -------------------------------------------------------------------------------- /src/CosId/Snowflake/ISnowflakeId.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ahoo-Wang/CosId-CSharp/HEAD/src/CosId/Snowflake/ISnowflakeId.cs -------------------------------------------------------------------------------- /src/CosId/Snowflake/Machine/IMachineIdDistributor.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ahoo-Wang/CosId-CSharp/HEAD/src/CosId/Snowflake/Machine/IMachineIdDistributor.cs -------------------------------------------------------------------------------- /src/CosId/Snowflake/Machine/InstanceId.cs: -------------------------------------------------------------------------------- 1 | namespace CosId.Snowflake.Machine; 2 | 3 | public class InstanceId 4 | { 5 | 6 | } -------------------------------------------------------------------------------- /src/CosId/Snowflake/Machine/MachineId.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ahoo-Wang/CosId-CSharp/HEAD/src/CosId/Snowflake/Machine/MachineId.cs -------------------------------------------------------------------------------- /src/CosId/StringIdGenerator.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ahoo-Wang/CosId-CSharp/HEAD/src/CosId/StringIdGenerator.cs -------------------------------------------------------------------------------- /test/CosId.Benchmarks/CosId.Benchmarks.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ahoo-Wang/CosId-CSharp/HEAD/test/CosId.Benchmarks/CosId.Benchmarks.csproj -------------------------------------------------------------------------------- /test/CosId.Benchmarks/Program.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ahoo-Wang/CosId-CSharp/HEAD/test/CosId.Benchmarks/Program.cs -------------------------------------------------------------------------------- /test/CosId.Proxy.Tests/CosId.Proxy.Tests.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ahoo-Wang/CosId-CSharp/HEAD/test/CosId.Proxy.Tests/CosId.Proxy.Tests.csproj -------------------------------------------------------------------------------- /test/CosId.Proxy.Tests/ProxyIdSegmentDistributorTest.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ahoo-Wang/CosId-CSharp/HEAD/test/CosId.Proxy.Tests/ProxyIdSegmentDistributorTest.cs -------------------------------------------------------------------------------- /test/CosId.Tests/Converter/ToStringIdConverterTest.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ahoo-Wang/CosId-CSharp/HEAD/test/CosId.Tests/Converter/ToStringIdConverterTest.cs -------------------------------------------------------------------------------- /test/CosId.Tests/CosId.Tests.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ahoo-Wang/CosId-CSharp/HEAD/test/CosId.Tests/CosId.Tests.csproj -------------------------------------------------------------------------------- /test/CosId.Tests/StringIdGeneratorTest.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ahoo-Wang/CosId-CSharp/HEAD/test/CosId.Tests/StringIdGeneratorTest.cs --------------------------------------------------------------------------------