aboutsummaryrefslogtreecommitdiff
path: root/lib/VNLib.Plugins.Extensions.Loading
diff options
context:
space:
mode:
Diffstat (limited to 'lib/VNLib.Plugins.Extensions.Loading')
-rw-r--r--lib/VNLib.Plugins.Extensions.Loading/src/UserManager.cs10
-rw-r--r--lib/VNLib.Plugins.Extensions.Loading/src/VNLib.Plugins.Extensions.Loading.csproj14
2 files changed, 6 insertions, 18 deletions
diff --git a/lib/VNLib.Plugins.Extensions.Loading/src/UserManager.cs b/lib/VNLib.Plugins.Extensions.Loading/src/UserManager.cs
index a3d667d..33f6df3 100644
--- a/lib/VNLib.Plugins.Extensions.Loading/src/UserManager.cs
+++ b/lib/VNLib.Plugins.Extensions.Loading/src/UserManager.cs
@@ -25,7 +25,6 @@
using System;
using System.Threading;
using System.Threading.Tasks;
-using System.Runtime.CompilerServices;
using VNLib.Utils;
using VNLib.Utils.Memory;
@@ -49,6 +48,7 @@ namespace VNLib.Plugins.Extensions.Loading.Users
public UserManager(PluginBase plugin)
{
+ //Load the default user assembly
_dynamicLoader = LoadUserAssembly(plugin, DEFAULT_USER_ASM);
}
@@ -88,48 +88,42 @@ namespace VNLib.Plugins.Extensions.Loading.Users
}
///<inheritdoc/>
- [MethodImpl(MethodImplOptions.AggressiveInlining)]
public Task<IUser> CreateUserAsync(string userid, string emailAddress, ulong privilages, PrivateString passHash, CancellationToken cancellation = default)
{
return _dynamicLoader.CreateUserAsync(userid, emailAddress, privilages, passHash, cancellation);
}
///<inheritdoc/>
- [MethodImpl(MethodImplOptions.AggressiveInlining)]
public Task<IUser?> GetUserAndPassFromEmailAsync(string emailAddress, CancellationToken cancellationToken = default)
{
return _dynamicLoader.GetUserAndPassFromEmailAsync(emailAddress, cancellationToken);
}
///<inheritdoc/>
- [MethodImpl(MethodImplOptions.AggressiveInlining)]
public Task<IUser?> GetUserAndPassFromIDAsync(string userid, CancellationToken cancellation = default)
{
return _dynamicLoader.GetUserAndPassFromIDAsync(userid, cancellation);
}
///<inheritdoc/>
- [MethodImpl(MethodImplOptions.AggressiveInlining)]
public Task<long> GetUserCountAsync(CancellationToken cancellation = default)
{
return _dynamicLoader.GetUserCountAsync(cancellation);
}
///<inheritdoc/>
- [MethodImpl(MethodImplOptions.AggressiveInlining)]
public Task<IUser?> GetUserFromEmailAsync(string emailAddress, CancellationToken cancellationToken = default)
{
return _dynamicLoader.GetUserFromEmailAsync(emailAddress, cancellationToken);
}
///<inheritdoc/>
- [MethodImpl(MethodImplOptions.AggressiveInlining)]
public Task<IUser?> GetUserFromIDAsync(string userId, CancellationToken cancellationToken = default)
{
return _dynamicLoader.GetUserFromIDAsync(userId, cancellationToken);
}
+
///<inheritdoc/>
- [MethodImpl(MethodImplOptions.AggressiveInlining)]
public Task<ERRNO> UpdatePassAsync(IUser user, PrivateString newPass, CancellationToken cancellation = default)
{
return _dynamicLoader.UpdatePassAsync(user, newPass, cancellation);
diff --git a/lib/VNLib.Plugins.Extensions.Loading/src/VNLib.Plugins.Extensions.Loading.csproj b/lib/VNLib.Plugins.Extensions.Loading/src/VNLib.Plugins.Extensions.Loading.csproj
index ca4113e..3b08812 100644
--- a/lib/VNLib.Plugins.Extensions.Loading/src/VNLib.Plugins.Extensions.Loading.csproj
+++ b/lib/VNLib.Plugins.Extensions.Loading/src/VNLib.Plugins.Extensions.Loading.csproj
@@ -8,14 +8,7 @@
<Nullable>enable</Nullable>
<AnalysisLevel>latest-all</AnalysisLevel>
</PropertyGroup>
-
- <PropertyGroup>
- <PackageProjectUrl>https://www.vaughnnugent.com/resources/software</PackageProjectUrl>
- <Copyright>Copyright © 2023 Vaughn Nugent</Copyright>
- <Authors>Vaughn Nugent</Authors>
- </PropertyGroup>
-
-
+
<PropertyGroup>
<Authors>Vaughn Nugent</Authors>
<Company>Vaughn Nugent</Company>
@@ -39,13 +32,14 @@
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
- <PackageReference Include="VaultSharp" Version="1.12.2.1" />
+ <PackageReference Include="VaultSharp" Version="1.13.0.1" />
</ItemGroup>
<ItemGroup>
+ <ProjectReference Include="..\..\..\..\..\core\lib\Utils\src\VNLib.Utils.csproj" />
+ <ProjectReference Include="..\..\..\..\..\core\lib\Plugins\src\VNLib.Plugins.csproj" />
<ProjectReference Include="..\..\..\..\..\core\lib\Plugins.Essentials\src\VNLib.Plugins.Essentials.csproj" />
<ProjectReference Include="..\..\..\..\..\core\lib\Plugins.PluginBase\src\VNLib.Plugins.PluginBase.csproj" />
- <ProjectReference Include="..\..\..\..\..\core\lib\Utils\src\VNLib.Utils.csproj" />
</ItemGroup>
<ItemGroup>