ActivityScope Class |
Namespace: Atalasoft.Shared.Diagnostics
The ActivityScope type exposes the following members.
| Name | Description | |
|---|---|---|
| ActivityScope |
Initializes a new instance of the ActivityScope class.
| |
| ActivityScope(TraceSource, String) |
Initializes a new instance of the ActivityScope class.
Sets new activity id, trace transfer to the new activity and start new logical operation. |
| Name | Description | |
|---|---|---|
| ActivityName |
Gets name of the current activity.
| |
| NullScope |
Gets null activity scope that does nothing (it does not use Correlation Manager at all).
|
| Name | Description | |
|---|---|---|
| Dispose |
Dispose method implementation.
Stops current logical operation, transfer to the previous activity and
sets previous activity id.
| |
| Dispose(Boolean) |
Correct implementation of Dispose pattern.
| |
| Equals | Determines whether the specified object is equal to the current object. (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 the default hash function. (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.) |
TraceSource trace = ... using (var scope = new ActivityScope(trace, "Some Interesting Activity")) { // ... using (var scope = new ActivityScope(trace, "Nested Activity")) { // ... } // ... }