Class ServerVariablesParser
Ensures the server variables are included in the outgoing JS script
Inheritance
System.Object
Namespace: Umbraco.Cms.Infrastructure.WebAssets
Assembly: Umbraco.Infrastructure.dll
Syntax
public class ServerVariablesParser
Constructors
View SourceServerVariablesParser(IEventAggregator)
Initializes a new instance of the ServerVariablesParser class.
Declaration
public ServerVariablesParser(IEventAggregator eventAggregator)
Parameters
Type | Name | Description |
---|---|---|
IEventAggregator | eventAggregator |
Methods
View SourceParseAsync(Dictionary<String, Object>)
Ensures the server variables in the dictionary are included in the outgoing JS script
Declaration
public async Task<string> ParseAsync(Dictionary<string, object> items)
Parameters
Type | Name | Description |
---|---|---|
Dictionary<System.String, System.Object> | items |
Returns
Type | Description |
---|---|
Task<System.String> |