Example #1
0
        public string GetWorkScopeKey()
        {
            string targetKey = null;

            switch (Mode)
            {
            case ScopeMode.Inherit:
                if (_ContainerScope != null)
                {
                    targetKey = _ContainerScope.GetWorkScopeKey();
                }
                break;

            case ScopeMode.CreateNew:
                targetKey = GetCurrentScopeKey();
                break;

            case ScopeMode.Top:
            default:
                break;
            }
            return(targetKey);
        }