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 SingletonLock(string id, string functionInstanceId, SingletonAttribute attribute, SingletonManager manager)
 {
     _lockId = id;
     _functionInstanceId = functionInstanceId;
     _attribute = attribute;
     _singletonManager = manager;
 }
Example #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);
        }
Example #4
0
 public SingletonLock(string id, string functionInstanceId, SingletonAttribute attribute, SingletonManager manager)
 {
     _lockId             = id;
     _functionInstanceId = functionInstanceId;
     _attribute          = attribute;
     _singletonManager   = manager;
 }