/// <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; }
/// <summary> /// copys the request-scope current to the thread-scope current. /// </summary> internal void SetFromRequestScope(PICurrentImpl requestCurrent) { PICurrentImpl threadScoped = GetThreadScopedCurrent(); threadScoped.SetSlotsFrom(requestCurrent); }