Exemplo n.º 1
0
        public static PrivilegeContext GetInstance()
        {
            if (_instance == null)
            {
                lock (_syncRoot)
                {
                    if (_instance == null)
                    {
                        _instance = new PrivilegeContext();
                    }
                }
            }

            return(_instance);
        }
Exemplo n.º 2
0
        public static PrivilegeContext GetInstance()
        {
            if (_instance == null)
            {
                lock (_syncRoot)
                {
                    if (_instance == null)
                    {
                        _instance = new PrivilegeContext();
                    }
                }
            }

            return _instance;
        }