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 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);
        }