DXCore Services – Context
September 27th, 2010
The Context service is responsible for the DXCore contexts system. It provides access to context providers and methods that report whether specified context is satisfied.
Here are its methods:
Name | Description |
BeginCheck | Marks the beginning of a sequence of context checks. A cache is maintained until the EndCheck method is called, so duplicate checks on a context will return the cached value. If you call this method, be sure to call EndCheck. |
ClearCache | Clears the context cache (created inside calls to BeginCheck and EndCheck). |
EndCheck | Marks the end of a sequence of context checks. |
GetAllContextPaths(string) | Returns an array of all available context names for the specified language. |
GetAllContexts(string) | Returns an array of all available context providers for the specified language. |
GetContextProvider(String) | Returns the specified context provider. |
PopulateContextPicker | Fills out a context picker with all the registered contexts. |
Satisfied(String) | Checks a context to see if it is satisfied. |
Satisfied(StringCollection, Boolean) | Checks a collection of contexts to see if they are satisfied or not. |
Satisfied(String, Boolean) | Checks a context to see if it is satisfied. Will return the default value if the context is not found. |
Satisfied(String, Match) | Checks a context to see if it is satisfied. |
Satisfied(String[], Boolean) | Checks an array of contexts to see if they are satisfied or not. |
Satisfied(StringCollection, Match, Boolean) | Checks a collection of contexts to see if they are satisfied or not. |
Satisfied(String, Boolean, Match) | Checks a context to see if it is satisfied. Will return the default value if the context is not found. |
Satisfied(String[], Match, Boolean) | Checks an array of contexts to see if they are satisfied or not. Checks for parameter replacement with named groups from the passed regular expression match. |
Properties:
Name | Description |
Providers | Returns an array of all available context providers. |