public bool CreateSharedObject(IScope scope, string name, bool persistent) {
			if (HasSharedObject(scope, name)) {
				// The shared object already exists.
				return true;
			}
			IBasicScope soScope = new SharedObjectScope(scope, name, persistent, GetStore(scope, persistent));
			return scope.AddChildScope(soScope);
		}
Beispiel #2
0
        public bool CreateSharedObject(IScope scope, string name, bool persistent)
        {
            if (HasSharedObject(scope, name))
            {
                // The shared object already exists.
                return(true);
            }
            IBasicScope soScope = new SharedObjectScope(scope, name, persistent, GetStore(scope, persistent));

            return(scope.AddChildScope(soScope));
        }