mirror of
https://github.com/project-redbud/FunGame-Server.git
synced 2026-01-19 14:08:22 +00:00
使用 AddScoped
This commit is contained in:
parent
9dff7f7d56
commit
39280c3dc5
@ -181,7 +181,7 @@ try
|
|||||||
|
|
||||||
throw new NoUserLogonException();
|
throw new NoUserLogonException();
|
||||||
});
|
});
|
||||||
builder.Services.AddTransient(provider =>
|
builder.Services.AddScoped(provider =>
|
||||||
{
|
{
|
||||||
SQLHelper? sql = Factory.OpenFactory.GetSQLHelper();
|
SQLHelper? sql = Factory.OpenFactory.GetSQLHelper();
|
||||||
if (sql != null) return sql;
|
if (sql != null) return sql;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user