Amnesia.Session.NewAsyncActivity C# (CSharp) Method

NewAsyncActivity() public static method

Registers an activity with the session. This method only needs to be called on threads that are not tied to an HttpContext.
public static NewAsyncActivity ( ) : IAsyncActivity
return IAsyncActivity
        public static IAsyncActivity NewAsyncActivity()
        {
            return Session.IsActive ? new AsyncActivity(Tracker) : NullAsyncActivity.Instance;
        }