feat(CryptFactory) : initiliazierte Schnittstellen.
- Lazy-Methode hinzugefügt, um statische CryptFactory zu beweisen
This commit is contained in:
parent
ee3060158e
commit
fee43c00ca
12
DigitalData.Core.Abstractions/Security/ICryptFactory.cs
Normal file
12
DigitalData.Core.Abstractions/Security/ICryptFactory.cs
Normal file
@ -0,0 +1,12 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace DigitalData.Core.Abstractions.Security
|
||||
{
|
||||
public interface ICryptFactory
|
||||
{
|
||||
}
|
||||
}
|
||||
11
DigitalData.Core.Security/CryptFactory.cs
Normal file
11
DigitalData.Core.Security/CryptFactory.cs
Normal file
@ -0,0 +1,11 @@
|
||||
using DigitalData.Core.Abstractions.Security;
|
||||
|
||||
namespace DigitalData.Core.Security
|
||||
{
|
||||
public class CryptFactory : ICryptFactory
|
||||
{
|
||||
private static readonly Lazy<ICryptFactory> LazyStaticCryptFactory = new (() => new CryptFactory());
|
||||
|
||||
public ICryptFactory Static = LazyStaticCryptFactory.Value;
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user