From fee43c00caf618c6902cc948340657288458a980 Mon Sep 17 00:00:00 2001 From: Developer 02 Date: Mon, 18 Nov 2024 17:44:55 +0100 Subject: [PATCH] feat(CryptFactory) : initiliazierte Schnittstellen. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Lazy-Methode hinzugefügt, um statische CryptFactory zu beweisen --- .../Security/ICryptFactory.cs | 12 ++++++++++++ DigitalData.Core.Security/CryptFactory.cs | 11 +++++++++++ 2 files changed, 23 insertions(+) create mode 100644 DigitalData.Core.Abstractions/Security/ICryptFactory.cs create mode 100644 DigitalData.Core.Security/CryptFactory.cs diff --git a/DigitalData.Core.Abstractions/Security/ICryptFactory.cs b/DigitalData.Core.Abstractions/Security/ICryptFactory.cs new file mode 100644 index 0000000..d61f227 --- /dev/null +++ b/DigitalData.Core.Abstractions/Security/ICryptFactory.cs @@ -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 + { + } +} diff --git a/DigitalData.Core.Security/CryptFactory.cs b/DigitalData.Core.Security/CryptFactory.cs new file mode 100644 index 0000000..2407c1a --- /dev/null +++ b/DigitalData.Core.Security/CryptFactory.cs @@ -0,0 +1,11 @@ +using DigitalData.Core.Abstractions.Security; + +namespace DigitalData.Core.Security +{ + public class CryptFactory : ICryptFactory + { + private static readonly Lazy LazyStaticCryptFactory = new (() => new CryptFactory()); + + public ICryptFactory Static = LazyStaticCryptFactory.Value; + } +} \ No newline at end of file