| | |
| | |  |
| | | using HslCommunication.WebSocket; |
| | | using SqlSugar; |
| | | using WIDESEAWCS_Core.Helper; |
| | | using WIDESEAWCS_Core.Seed; |
| | |
| | | { |
| | | private readonly ICacheService _cacheService; |
| | | private readonly DBContext _dbContext; |
| | | private readonly WebSocketServer _webSocketServer; |
| | | |
| | | public WarehouseHostedService(ICacheService cacheService, DBContext dbContext) |
| | | public WarehouseHostedService(ICacheService cacheService, DBContext dbContext, WebSocketServer webSocketServer) |
| | | { |
| | | _cacheService = cacheService; |
| | | _dbContext = dbContext; |
| | | _webSocketServer = webSocketServer; |
| | | } |
| | | |
| | | public Task StartAsync(CancellationToken cancellationToken) |