RuntimeConfig Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Runtime configuration for the execution of an expression. This can be reused across multiple evals - so it shouldn't have any state that expires such as a cancellation token.
public sealed class RuntimeConfig : Microsoft.PowerFx.IRuntimeConfig
type RuntimeConfig = class
interface IRuntimeConfig
Public NotInheritable Class RuntimeConfig
Implements IRuntimeConfig
- Inheritance
-
RuntimeConfig
- Implements
Constructors
| RuntimeConfig() | |
| RuntimeConfig(ReadOnlySymbolValues, CultureInfo) | |
| RuntimeConfig(ReadOnlySymbolValues) |
Properties
| ServiceProvider |
Mutable set of serivces for runtime functions and evaluation. |
| Values |
This should match the SymbolTable provided at bind time. |
Methods
| AddService<T>(T) | |
| GetService<T>() |
Explicit Interface Implementations
| IRuntimeConfig.ServiceProvider |
Extension Methods
| AddRuntimeContext(RuntimeConfig, BaseRuntimeConnectorContext) | |
| SetClock(RuntimeConfig, IClockService) |
Set clock service for use with Today(), IsToday(), Now(). |
| SetCulture(RuntimeConfig, CultureInfo) |
Set CultureInfo. |
| SetRandom(RuntimeConfig, IRandomService) |
Set random service to override generating random numbers with Rand(), RandBetween(). |
| SetTimeZone(RuntimeConfig, TimeZoneInfo) |
Set TimeZoneInfo. |
| SetUserInfo(RuntimeConfig, BasicUserInfo) | |
| SetUserInfo(RuntimeConfig, UserInfo) |
Set UserInfo at runtime. Called in conjuction with AddUserInfoObject(SymbolTable, String[]). |