API oldaláról sokminden
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace WorkFlowCheck.Common.Constants
|
||||
{
|
||||
public static class MemoryCacheNames
|
||||
{
|
||||
public const string UsersNamePrefix = "Users_";
|
||||
public const string TranslationsNamePrefix = "Translations_";
|
||||
public const string Languages = "Languages";
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace WorkFlowCheck.Common.RequestContext
|
||||
{
|
||||
public interface IRequestContext
|
||||
{
|
||||
string TraceId { get; }
|
||||
|
||||
string CurrentUsername { get; }
|
||||
string CurrentUserEmail { get; }
|
||||
int? CurrentUserId { get; }
|
||||
CancellationToken RequestAborted { get; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user