♻️ Moving to MagicOnion
This commit is contained in:
24
DysonNetwork.Shared/Services/IActionLogService.cs
Normal file
24
DysonNetwork.Shared/Services/IActionLogService.cs
Normal file
@ -0,0 +1,24 @@
|
||||
using System.Collections.Generic;
|
||||
using DysonNetwork.Shared.Models;
|
||||
using MagicOnion;
|
||||
using Microsoft.AspNetCore.Http;
|
||||
|
||||
namespace DysonNetwork.Shared.Services;
|
||||
|
||||
public interface IActionLogService : IService<IActionLogService>
|
||||
{
|
||||
/// <summary>
|
||||
/// Creates an action log entry
|
||||
/// </summary>
|
||||
void CreateActionLog(Guid accountId, string action, Dictionary<string, object> meta);
|
||||
|
||||
/// <summary>
|
||||
/// Creates an action log entry from an HTTP request
|
||||
/// </summary>
|
||||
void CreateActionLogFromRequest(
|
||||
string action,
|
||||
Dictionary<string, object> meta,
|
||||
HttpRequest request,
|
||||
Account? account = null
|
||||
);
|
||||
}
|
Reference in New Issue
Block a user