chore
parent
42729fdddf
commit
673500e2be
|
@ -20,6 +20,9 @@ namespace LeanCloud.Engine {
|
||||||
}
|
}
|
||||||
|
|
||||||
public LCEngineClassHookAttribute(string className, LCEngineObjectHookType hookType) {
|
public LCEngineClassHookAttribute(string className, LCEngineObjectHookType hookType) {
|
||||||
|
if (string.IsNullOrEmpty(className)) {
|
||||||
|
throw new ArgumentNullException(nameof(className));
|
||||||
|
}
|
||||||
ClassName = className;
|
ClassName = className;
|
||||||
HookType = hookType;
|
HookType = hookType;
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,7 +9,6 @@ using Newtonsoft.Json;
|
||||||
using Microsoft.Extensions.Primitives;
|
using Microsoft.Extensions.Primitives;
|
||||||
using Microsoft.Extensions.DependencyInjection;
|
using Microsoft.Extensions.DependencyInjection;
|
||||||
using LeanCloud.Common;
|
using LeanCloud.Common;
|
||||||
using LeanCloud.Storage;
|
|
||||||
|
|
||||||
namespace LeanCloud.Engine {
|
namespace LeanCloud.Engine {
|
||||||
public class LCEngine {
|
public class LCEngine {
|
||||||
|
|
|
@ -5,9 +5,9 @@ using LeanCloud.Storage;
|
||||||
|
|
||||||
namespace LeanCloud.Engine {
|
namespace LeanCloud.Engine {
|
||||||
public class LCEngineRequestContext {
|
public class LCEngineRequestContext {
|
||||||
public const string RemoteAddressKey = "remoteAddressKey";
|
public const string RemoteAddressKey = "__remoteAddressKey";
|
||||||
public const string SessionTokenKey = "sessionToken";
|
public const string SessionTokenKey = "__sessionToken";
|
||||||
public const string CurrentUserKey = "currentUser";
|
public const string CurrentUserKey = "__currentUser";
|
||||||
|
|
||||||
private static ThreadLocal<Dictionary<string, object>> requestContext = new ThreadLocal<Dictionary<string, object>>();
|
private static ThreadLocal<Dictionary<string, object>> requestContext = new ThreadLocal<Dictionary<string, object>>();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue