Interface for UniquieID - IUniquieID
This commit is contained in:
15
Pilz.Cryptography/IUniquieID.cs
Normal file
15
Pilz.Cryptography/IUniquieID.cs
Normal 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();
|
||||
}
|
||||
}
|
||||
@@ -9,7 +9,7 @@ using System.Threading.Tasks;
|
||||
|
||||
namespace Pilz.Cryptography
|
||||
{
|
||||
public class UniquieID<TargetType>
|
||||
public class UniquieID<TargetType> : IUniquieID
|
||||
{
|
||||
private static int currentSimpleID = 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user