feat(CryptFactory) : initiliazierte Schnittstellen.

- Lazy-Methode hinzugefügt, um statische CryptFactory zu beweisen
This commit is contained in:
Developer 02 2024-11-18 17:44:55 +01:00
parent ee3060158e
commit fee43c00ca
2 changed files with 23 additions and 0 deletions

View 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
{
}
}

View 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;
}
}