-
Notifications
You must be signed in to change notification settings - Fork 171
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
job [LogTableRoute:Log] invoke fail : System.ObjectDisposedException: Cannot access a disposed object. #279
Comments
请问有人遇见过这个问题么? |
@JiaDongming addDatabaseAccessor是啥东西我记得sharding-core貌似没有的 |
你好,我用了furion框架,这个是他提供的一个扩展方法,你怀疑是这个引起的问题么? |
看报错信息像是ShardingCore里有个job |
@JiaDongming 你是否有注入ILogger? |
原则上这个应该是不会报错的才对 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
我针对我的日志表Log进行了每日分表,我用的ShardingCore的库是7.6.1.10,对应ef core是6.x的版本;
LogTableRoute.cs
`public class LogTableRoute : AbstractSimpleShardingDayKeyDateTimeVirtualTableRoute
//AbstractSimpleShardingMonthKeyDateTimeVirtualTableRoute
{
public override bool AutoCreateTableByTime()
{
return true;
}
}
依赖注入的地方是:
///
/// 注册日志到数据库模块
///
///
/// myslq的连接字符串,暂时只支持mysql
///
///
public static IServiceCollection AddLogDatabaseSharding(this IServiceCollection services, string connectionString)
{
if (services == null)
{
throw new ArgumentNullException(nameof(services));
}
}
`
以下是报错信息
The text was updated successfully, but these errors were encountered: