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);
 }
Пример #2
0
 public SingletonLock(string id, string functionInstanceId, SingletonAttribute attribute, SingletonManager manager)
 {
     _lockId = id;
     _functionInstanceId = functionInstanceId;
     _attribute = attribute;
     _singletonManager = manager;
 }
Пример #3
0
        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);
        }
Пример #4
0
 public SingletonLock(string id, string functionInstanceId, SingletonAttribute attribute, SingletonManager manager)
 {
     _lockId             = id;
     _functionInstanceId = functionInstanceId;
     _attribute          = attribute;
     _singletonManager   = manager;
 }