yavsccli target

This commit is contained in:
2021-03-10 01:41:31 +00:00
parent 66616e7314
commit 80d1f8be1a
16 changed files with 85 additions and 107 deletions

View File

@ -20,9 +20,9 @@ namespace Yavsc.Services
/// </summary>
public class HubConnectionManager : IConnexionManager
{
ILogger _logger;
private readonly ILogger _logger;
Action<string, string> _errorHandler;
private Action<string, string> _errorHandler;
/// <summary>
/// by cx id

View File

@ -28,23 +28,21 @@ namespace Yavsc.Services
return false;
}
}
UserMatch Out = new OutOfCircle();
UserMatch In = new BelongsToCircle();
readonly ApplicationDbContext _dbContext;
readonly ILogger _logger;
private readonly UserMatch Out = new OutOfCircle();
private readonly UserMatch In = new BelongsToCircle();
readonly SiteSettings SiteSettings;
private readonly ApplicationDbContext _dbContext;
readonly string aclfileName;
private readonly SiteSettings SiteSettings;
private readonly string aclfileName;
readonly RuleSetParser ruleSetParser;
public FileSystemAuthManager(ApplicationDbContext dbContext, ILoggerFactory loggerFactory,
IOptions<SiteSettings> sitesOptions)
public FileSystemAuthManager(ApplicationDbContext dbContext, IOptions<SiteSettings> sitesOptions)
{
_dbContext = dbContext;
_logger = loggerFactory.CreateLogger<FileSystemAuthManager>();
SiteSettings = sitesOptions.Value;
aclfileName = SiteSettings.AccessListFileName;
ruleSetParser = new RuleSetParser(false);

View File

@ -23,17 +23,12 @@ namespace Yavsc.Services
public class LiveProcessor : ILiveProcessor
{
readonly IHubContext _hubContext;
private readonly ILogger _logger;
readonly ApplicationDbContext _dbContext;
public ConcurrentDictionary<string, LiveCastHandler> Casters { get; } = new ConcurrentDictionary<string, LiveCastHandler>();
public LiveProcessor(ApplicationDbContext dbContext, ILoggerFactory loggerFactory)
public LiveProcessor(ILoggerFactory loggerFactory)
{
_dbContext = dbContext;
_hubContext = GlobalHost.ConnectionManager.GetHubContext<ChatHub>();
_logger = loggerFactory.CreateLogger<LiveProcessor>();
}