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