ServicingContext Class
Inheritance Hierarchy
System.Object
Microsoft.TeamFoundation.Framework.Server.ServicingContext
Namespace: Microsoft.TeamFoundation.Framework.Server
Assembly: Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)
Syntax
'Declaration
Public Class ServicingContext _
Implements IDisposable
public class ServicingContext : IDisposable
public ref class ServicingContext : IDisposable
type ServicingContext =
class
interface IDisposable
end
public class ServicingContext implements IDisposable
The ServicingContext type exposes the following members.
Constructors
Top
Properties
Name | Description | |
---|---|---|
CurrentServicingOperation | ||
CurrentStepGroupName | ||
GroupResolution | ||
Items | ||
LoggingLevel | ||
OperationClass | ||
PartitionIdToHostIdMap | ||
RequestContext | ||
ResourceProvider | ||
TFLogger | ||
Tokens |
Top
Methods
Name | Description | |
---|---|---|
AddItemIfNotDefined | Add an item if it does not already exist. | |
AddTokenIfNotDefined | SetServicingToken is used to set a name value pair that is replaced in the step data before the step is executed. When calling this method only supply the token name itself. Tokens are referenced in servicing step data by including "$$" before and after the token name. ex. Set with "ExampleToken", step data contains "$$ExampleToken$$". Tokens are compared with a case-insensitive comparison, but replaced case-sensitively. | |
CreateComponent<TComponent> | Creates a component that can be used to communicate to the current version of the database. | |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Error | ||
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetConnectionString | Gets connection string for the specified logical database. If connection string for the specified category is not defined and fallbackOnFramework is true, Framework connection string is returned. | |
GetConnectionStrings | ||
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetItem<T> | ||
GetRequiredToken | ||
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
Log | ||
LogInfo(String) | ||
LogInfo(String, array<Object[]) | ||
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ParseToken<T> | ||
ReplaceResources | ||
ReplaceTokens | ||
SkipChildren | ||
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
TryGetItem<T> | Attempts to retrieve an item from the item bag. | |
TryGetToken | Attempts to retrieve a token from the token bag. | |
Warn |
Top
Explicit Interface Implementations
Name | Description | |
---|---|---|
IDisposable.Dispose |
Top
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.