The SessionIdLoggingContext type exposes the following members.
Constructors
Name | Description | |
---|---|---|
SessionIdLoggingContext | Initializes a new instance of the SessionIdLoggingContext class |
Methods
Name | Description | |
---|---|---|
Dispose | Releases all resources used by the SessionIdLoggingContext | |
Equals | (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Extension Methods
Name | Description | |
---|---|---|
As<(Of <<'(T>)>>) | (Defined by TypeHelperExtensionMethods.) | |
IsBetween |
Apply a "between" constraint to the named property
Note: throws an exception outside of a QueryOver expression
(Defined by RestrictionExtensions.) | |
IsIn(array<Object>[]()[][]) | Overloaded.
Apply an "in" constraint to the named property
Note: throws an exception outside of a QueryOver expression
(Defined by RestrictionExtensions.) | |
IsIn(ICollection) | Overloaded.
Apply an "in" constraint to the named property
Note: throws an exception outside of a QueryOver expression
(Defined by RestrictionExtensions.) | |
IsProxy | (Defined by NHibernateProxyHelper.) | |
ToTypeParameters | (Defined by ReflectHelper.) |
Properties
Name | Description | |
---|---|---|
SessionId |
We always set the result to use a thread static variable, on the face of it,
it looks like it is not a valid choice, since ASP.Net and WCF may decide to switch
threads on us. But, since SessionIdLoggingContext is only used inside NH calls, and since
NH calls are never async, this isn't an issue for us.
In addition to that, attempting to match to the current context has proven to be performance hit.
|