oneRain 2021-03-25 10:46:03 +08:00
parent 42729fdddf
commit 673500e2be
3 changed files with 6 additions and 4 deletions

View File

@ -20,6 +20,9 @@ namespace LeanCloud.Engine {
}
public LCEngineClassHookAttribute(string className, LCEngineObjectHookType hookType) {
if (string.IsNullOrEmpty(className)) {
throw new ArgumentNullException(nameof(className));
}
ClassName = className;
HookType = hookType;
}

View File

@ -9,7 +9,6 @@ using Newtonsoft.Json;
using Microsoft.Extensions.Primitives;
using Microsoft.Extensions.DependencyInjection;
using LeanCloud.Common;
using LeanCloud.Storage;
namespace LeanCloud.Engine {
public class LCEngine {

View File

@ -5,9 +5,9 @@ using LeanCloud.Storage;
namespace LeanCloud.Engine {
public class LCEngineRequestContext {
public const string RemoteAddressKey = "remoteAddressKey";
public const string SessionTokenKey = "sessionToken";
public const string CurrentUserKey = "currentUser";
public const string RemoteAddressKey = "__remoteAddressKey";
public const string SessionTokenKey = "__sessionToken";
public const string CurrentUserKey = "__currentUser";
private static ThreadLocal<Dictionary<string, object>> requestContext = new ThreadLocal<Dictionary<string, object>>();