AdvantageCMS.Core.Common.BaseClasses Namespace
Build With Advantage

SqlConnectionContext..::..Clear Method

Forcibly clears the ambient connection string on the current thread. Defensive — use at the boundary of a long-lived operation (e.g., the end of a background work item) to guarantee no leak into the next thread-pool caller in the event a nested Scope(String) was not disposed correctly. Normal Scope(String) usage already handles cleanup; Clear()()()() is for paths where the scope contract may not have been honored.

Namespace:  AdvantageCMS.Data
Assembly:  AdvantageCMS.Data (in AdvantageCMS.Data.dll)

Syntax


public static void Clear()