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