Interface for UniquieID - IUniquieID

This commit is contained in:
schedpas
2021-10-27 10:04:34 +02:00
parent f120e7a374
commit 88524047ff
2 changed files with 16 additions and 1 deletions

View File

@@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace Pilz.Cryptography
{
interface IUniquieID
{
bool HasID { get; }
string ID { get; }
void GenerateIfNull();
void Generate();
}
}

View File

@@ -9,7 +9,7 @@ using System.Threading.Tasks;
namespace Pilz.Cryptography namespace Pilz.Cryptography
{ {
public class UniquieID<TargetType> public class UniquieID<TargetType> : IUniquieID
{ {
private static int currentSimpleID = 0; private static int currentSimpleID = 0;