public SingletonValueProvider(MethodInfo method, string scope, string functionInstanceId, SingletonAttribute attribute, SingletonManager singletonManager) { _scope = string.IsNullOrEmpty(scope) ? "default" : scope; string lockId = SingletonManager.FormatLockId(method, scope); _singletonLock = new SingletonLock(lockId, functionInstanceId, attribute, singletonManager); _watcher = new SingletonWatcher(_singletonLock); }
public SingletonValueProvider(MethodInfo method, string scopeId, string functionInstanceId, SingletonAttribute attribute, SingletonManager singletonManager) { _scopeId = string.IsNullOrEmpty(scopeId) ? "(null)" : scopeId; string lockId = singletonManager.FormatLockId(method, attribute.Scope, scopeId); _singletonLock = new SingletonLock(lockId, functionInstanceId, attribute, singletonManager); _watcher = new SingletonWatcher(_singletonLock); }
public SingletonWatcher(SingletonLock singletonLock) { _singletonLock = singletonLock; _log = new SingletonParameterLog(); }