public WebSocketHub() { PeriodicTask.Create(PeriodicTaskDoWork, 5); }
/// <summary> /// Static file module started was and trigged this method /// </summary> /// <param name="cancellationToken"></param> public override void Start(CancellationToken cancellationToken) { _files = new(); Container.TryResolve <StaticFileOptions>(out options); PeriodicTask.Create(HandleExpireFiles, 1, cancellationToken); }