예제 #1
0
 public WebSocketHub()
 {
     PeriodicTask.Create(PeriodicTaskDoWork, 5);
 }
예제 #2
0
 /// <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);
 }