mirror of
https://github.com/C9Glax/tranga.git
synced 2025-09-10 11:58:19 +02:00
Allow requests to be cancelled.
Make workers have a CancellationTokenSource
This commit is contained in:
@@ -6,12 +6,12 @@ namespace API.Schema;
|
||||
[PrimaryKey("Key")]
|
||||
public abstract class Identifiable
|
||||
{
|
||||
public Identifiable()
|
||||
protected Identifiable()
|
||||
{
|
||||
this.Key = TokenGen.CreateToken(this.GetType());
|
||||
}
|
||||
|
||||
public Identifiable(string key)
|
||||
|
||||
protected Identifiable(string key)
|
||||
{
|
||||
this.Key = key;
|
||||
}
|
||||
|
Reference in New Issue
Block a user