XFEExtension.NetCore.ServerInteractive
[DLL] Server interaction extension, including user identity verification and querying in conjunction with AutoConfig
关注
0
Fork
0
Star
0
返回提交历史
Modified
XFEExtension.NetCore.ServerInteractive/Options/XFEStandardServerCoreOptions.cs
+2
-1
Modified
XFEExtension.NetCore.ServerInteractive/Utilities/Extensions/XFEServerCoreBuilderExtensions.cs
+4
-3
Modified
XFEExtension.NetCore.ServerInteractive/XFEExtension.NetCore.ServerInteractive.csproj
+3
-3
XFEstudio/XFEExtension.NetCore.ServerInteractive
修复AddUserFunction泛型问题 版本更新至3.0.6
c095726
代码差异
3 个文件
+9
-7
@@ -1,3 +1,4 @@
1
using XFEExtension.NetCore.ServerInteractive.Interfaces;
1
2
using XFEExtension.NetCore.ServerInteractive.Models.UserModels;
2
3
using XFEExtension.NetCore.ServerInteractive.Utilities.DataTable;
3
4
@@ -31,7 +32,7 @@ public class XFEStandardServerCoreOptions<T> where T : class
31
32
/// <summary>
32
33
/// 添加用户函数
33
34
/// </summary>
34
public Action<User>? AddUserFunction { get; set; }
35
public Action<IUserInfo>? AddUserFunction { get; set; }
35
36
/// <summary>
36
37
/// 获取加密用户登录模型函数
37
38
/// </summary>
@@ -1,4 +1,5 @@
1
using XFEExtension.NetCore.ServerInteractive.Models.UserModels;
1
using XFEExtension.NetCore.ServerInteractive.Interfaces;
2
using XFEExtension.NetCore.ServerInteractive.Models.UserModels;
2
3
using XFEExtension.NetCore.ServerInteractive.Options;
3
4
using XFEExtension.NetCore.ServerInteractive.Utilities.DataTable;
4
5
using XFEExtension.NetCore.ServerInteractive.Utilities.Server;
@@ -51,7 +52,7 @@ public static class XFEServerCoreBuilderExtensions
51
52
/// <param name="getLoginKeepDays"></param>
52
53
/// <param name="loginResultConvertFunction"></param>
53
54
/// <returns></returns>
54
public XFEServerCoreBuilder AddUserParameterBase<T>(Func<IEnumerable<User>> getUserFunction, Action<User> addUserFunction, Func<IEnumerable<EncryptedUserLoginModel>> getEncryptedUserLoginModelFunction, Action<EncryptedUserLoginModel> addEncryptedUserLoginModelFunction, Action<EncryptedUserLoginModel> removeEncryptedUserLoginModelFunction, Func<int> getLoginKeepDays, Func<object, T> loginResultConvertFunction) where T : class => xFEServerCoreBuilder.AddParameter("GetUserFunction", getUserFunction)
55
public XFEServerCoreBuilder AddUserParameterBase<T>(Func<IEnumerable<User>> getUserFunction, Action<IUserInfo> addUserFunction, Func<IEnumerable<EncryptedUserLoginModel>> getEncryptedUserLoginModelFunction, Action<EncryptedUserLoginModel> addEncryptedUserLoginModelFunction, Action<EncryptedUserLoginModel> removeEncryptedUserLoginModelFunction, Func<int> getLoginKeepDays, Func<object, T> loginResultConvertFunction) where T : class => xFEServerCoreBuilder.AddParameter("GetUserFunction", getUserFunction)
55
56
.AddParameter("AddUserFunction", addUserFunction)
56
57
.AddParameter("GetEncryptedUserLoginModelFunction", getEncryptedUserLoginModelFunction)
57
58
.AddParameter("AddEncryptedUserLoginModelFunction", addEncryptedUserLoginModelFunction)
@@ -117,7 +118,7 @@ public static class XFEServerCoreBuilderExtensions
117
118
/// <param name="xFEDataTableManagerBuilder"></param>
118
119
/// <param name="loginResultConvertFunction"></param>
119
120
/// <returns></returns>
120
public XFEServerCoreBuilder UseXFEStandardServerCore<T>(Func<IEnumerable<User>> getUserFunction, Action<User> addUserFunction, Func<IEnumerable<EncryptedUserLoginModel>> getEncryptedUserLoginModelFunction, Action<EncryptedUserLoginModel> addEncryptedUserLoginModelFunction, Action<EncryptedUserLoginModel> removeEncryptedUserLoginModelFunction, Func<int> getLoginKeepDays, Func<object, T> loginResultConvertFunction, XFEDataTableManagerBuilder xFEDataTableManagerBuilder) where T : class => xFEServerCoreBuilder.AddUserParameterBase(getUserFunction, addUserFunction, getEncryptedUserLoginModelFunction, addEncryptedUserLoginModelFunction, removeEncryptedUserLoginModelFunction, getLoginKeepDays, loginResultConvertFunction)
121
public XFEServerCoreBuilder UseXFEStandardServerCore<T>(Func<IEnumerable<User>> getUserFunction, Action<IUserInfo> addUserFunction, Func<IEnumerable<EncryptedUserLoginModel>> getEncryptedUserLoginModelFunction, Action<EncryptedUserLoginModel> addEncryptedUserLoginModelFunction, Action<EncryptedUserLoginModel> removeEncryptedUserLoginModelFunction, Func<int> getLoginKeepDays, Func<object, T> loginResultConvertFunction, XFEDataTableManagerBuilder xFEDataTableManagerBuilder) where T : class => xFEServerCoreBuilder.AddUserParameterBase(getUserFunction, addUserFunction, getEncryptedUserLoginModelFunction, addEncryptedUserLoginModelFunction, removeEncryptedUserLoginModelFunction, getLoginKeepDays, loginResultConvertFunction)
121
122
.AddDataTableManager(xFEDataTableManagerBuilder, getUserFunction, getEncryptedUserLoginModelFunction)
122
123
.AddEntryPointVerify()
123
124
.AddDailyCounterService()
@@ -5,7 +5,7 @@
5
5
<ImplicitUsings>enable</ImplicitUsings>
6
6
<Nullable>enable</Nullable>
7
7
<GenerateDocumentationFile>True</GenerateDocumentationFile>
8
<Version>3.0.5</Version>
8
<Version>3.0.6</Version>
9
9
<Title>XFEExtension.NetCore.ServerInteractive</Title>
10
10
<RepositoryUrl>https://github.com/XFEstudio/XFEExtension.NetCore.ServerInteractive</RepositoryUrl>
11
11
<AnalysisLevel>latest</AnalysisLevel>
@@ -21,8 +21,8 @@
21
21
<PackageReleaseNotes>
22
22
## 调整
23
23
24
修复AddUserFunction没有被正确添加到Options里面的问题
25
版本更新至3.0.5
24
修复AddUserFunction泛型问题
25
版本更新至3.0.6
26
26
27
27
## 新增
28
28