예제 #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 (this.HasSharedObject(scope, name))
            {
                return(true);
            }
            IBasicScope scope2 = new SharedObjectScope(scope, name, persistent, this.GetStore(scope, persistent));

            return(scope.AddChildScope(scope2));
        }
        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));
        }