Exemple #1
0
        /// <summary>
        /// creates a request scope PICurrent from the ThreadScope PICurrent.
        /// </summary>
        internal PICurrentImpl CreateRequestScopeFromThreadScope()
        {
            PICurrentImpl result = new PICurrentImpl(GetNrOfSlotsAllocated());

            result.SetSlotsFrom(GetThreadScopedCurrent());
            return(result);
        }
 /// <summary>
 /// creates a request scope PICurrent from the ThreadScope PICurrent.
 /// </summary>
 internal PICurrentImpl CreateRequestScopeFromThreadScope() {
     PICurrentImpl result = new PICurrentImpl(GetNrOfSlotsAllocated());
     result.SetSlotsFrom(GetThreadScopedCurrent());
     return result;
 }
Exemple #3
0
        /// <summary>
        /// copys the request-scope current to the thread-scope current.
        /// </summary>
        internal void SetFromRequestScope(PICurrentImpl requestCurrent)
        {
            PICurrentImpl threadScoped = GetThreadScopedCurrent();

            threadScoped.SetSlotsFrom(requestCurrent);
        }