From 52ff16cf596b249f329b9f4d15e919ba066e97ea Mon Sep 17 00:00:00 2001 From: Norbert Bietsch Date: Sat, 9 Jan 2021 15:47:12 +0100 Subject: [PATCH] Removed redundant Axuno.Scripting project --- Axuno.Scripting/Axuno.Scripting.csproj | 11 ----------- Axuno.Scripting/Processor.cs | 27 -------------------------- 2 files changed, 38 deletions(-) delete mode 100644 Axuno.Scripting/Axuno.Scripting.csproj delete mode 100644 Axuno.Scripting/Processor.cs diff --git a/Axuno.Scripting/Axuno.Scripting.csproj b/Axuno.Scripting/Axuno.Scripting.csproj deleted file mode 100644 index 770bcd28..00000000 --- a/Axuno.Scripting/Axuno.Scripting.csproj +++ /dev/null @@ -1,11 +0,0 @@ - - - - netstandard2.1 - - - - - - - diff --git a/Axuno.Scripting/Processor.cs b/Axuno.Scripting/Processor.cs deleted file mode 100644 index 56f41809..00000000 --- a/Axuno.Scripting/Processor.cs +++ /dev/null @@ -1,27 +0,0 @@ -using System; -using System.Threading.Tasks; - -namespace Axuno.Scripting -{ - public class Processor - { - /// - /// Uses Roslyn C# compiler scripting to create a . - /// - /// - /// The code to define a . - /// - /// (h.PublicHolidayStateIds.Count == 0 || h.PublicHolidayStateIds.Contains(Axuno.Tools.GermanFederalStates.Id.Bayern)) && (h.Type == Axuno.Tools.GermanHolidays.Type.Public || h.Type == Axuno.Tools.GermanHolidays.Type.Custom || h.Type == Axuno.Tools.GermanHolidays.Type.School)"; - /// var holidayFilterExpression = await Axuno.Scripting.Processor.CreatePredicateAsync(hf); - /// ]]> - /// - /// Returns the created from the code string. - public static async Task> CreatePredicateAsync(string expression) where T: class - { - var options = Microsoft.CodeAnalysis.Scripting.ScriptOptions.Default.AddReferences(typeof(T).Assembly); - return await Microsoft.CodeAnalysis.CSharp.Scripting.CSharpScript.EvaluateAsync>(expression, options); - } - } -}