示例#1
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);
		}
示例#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));
        }