public AdaptiveRenderContext(AdaptiveHostConfig hostConfig, AdaptiveElementRenderers <HtmlTag, AdaptiveRenderContext> elementRenderers) { // clone it Config = JsonConvert.DeserializeObject <AdaptiveHostConfig>(JsonConvert.SerializeObject(hostConfig)); ElementRenderers = elementRenderers; ForegroundColors = Config.ContainerStyles.Default.ForegroundColors; }
public AdaptiveRenderContext(AdaptiveHostConfig hostConfig, AdaptiveElementRenderers <HtmlTag, AdaptiveRenderContext> elementRenderers, Dictionary <string, object> elementDefinitions = default(Dictionary <string, object>)) { // clone it Config = JsonConvert.DeserializeObject <AdaptiveHostConfig>(JsonConvert.SerializeObject(hostConfig)); ElementRenderers = elementRenderers; ElementDefinitions = elementDefinitions; }
public AdaptiveRenderContext(AdaptiveHostConfig hostConfig, AdaptiveElementRenderers <HtmlTag, AdaptiveRenderContext> elementRenderers) { // clone it Config = JsonConvert.DeserializeObject <AdaptiveHostConfig>(JsonConvert.SerializeObject(hostConfig)); ElementRenderers = elementRenderers; }