diff --git a/src/Avolutions.Baf.Core.csproj b/src/Avolutions.Baf.Core.csproj index d1622ae..fd7dd71 100644 --- a/src/Avolutions.Baf.Core.csproj +++ b/src/Avolutions.Baf.Core.csproj @@ -6,7 +6,7 @@ enable Avolutions.Baf.Core - 0.18.0 + 0.19.0 Avolutions BAF Core Avolutions diff --git a/src/Caching/Extensions/ServiceCollectionExtensions.cs b/src/Caching/Extensions/ServiceCollectionExtensions.cs new file mode 100644 index 0000000..53e1545 --- /dev/null +++ b/src/Caching/Extensions/ServiceCollectionExtensions.cs @@ -0,0 +1,17 @@ +using Avolutions.Baf.Core.Caching.Abstractions; +using Microsoft.Extensions.DependencyInjection; + +namespace Avolutions.Baf.Core.Caching.Extensions; + +public static class ServiceCollectionExtensions +{ + public static IServiceCollection AddCache(this IServiceCollection services) + where TInterface : class, ICache + where TImplementation : class, TInterface + { + services.AddSingleton(); + services.AddSingleton(sp => sp.GetRequiredService()); + services.AddSingleton(sp => sp.GetRequiredService()); + return services; + } +} \ No newline at end of file diff --git a/src/Resources/SharedResources.de.Designer.cs b/src/Resources/SharedResources.de.Designer.cs index 6ffdb6a..38a7547 100644 --- a/src/Resources/SharedResources.de.Designer.cs +++ b/src/Resources/SharedResources.de.Designer.cs @@ -167,6 +167,15 @@ internal static string Button_Save { } } + /// + /// Looks up a localized string similar to auswählen. + /// + internal static string Button_Select { + get { + return ResourceManager.GetString("Button.Select", resourceCulture); + } + } + /// /// Looks up a localized string similar to ja. /// diff --git a/src/Resources/SharedResources.de.resx b/src/Resources/SharedResources.de.resx index aa60a93..3d5e699 100644 --- a/src/Resources/SharedResources.de.resx +++ b/src/Resources/SharedResources.de.resx @@ -60,4 +60,7 @@ {0} erfassen + + auswählen + \ No newline at end of file