public RecalcEngineResolver( RecalcEngine parent, RecordType parameters, IEnumerable <EnumSymbol> enumSymbols, params TexlFunction[] extraFunctions) : base(enumSymbols, extraFunctions) { _parameters = parameters; _parent = parent; }
public static RecalcEngineScope FromUri(RecalcEngine engine, string uri) { var uriObj = new Uri(uri); var contextJson = HttpUtility.ParseQueryString(uriObj.Query).Get("context"); if (contextJson == null) { contextJson = "{}"; } return(FromJson(engine, contextJson)); }
public RecalcEngineWorker(RecalcEngine parent, CultureInfo cultureInfo = null) { _parent = parent; _cultureInfo = cultureInfo ?? CultureInfo.CurrentCulture; }
public static RecalcEngineScope FromJson(RecalcEngine engine, string json) { var context = FormulaValue.FromJson(json); return(FromRecord(engine, context.Type)); }
public static RecalcEngineScope FromRecord(RecalcEngine engine, FormulaType type) { return(new RecalcEngineScope(engine, type)); }
private RecalcEngineScope(RecalcEngine engine, FormulaType contextType) { _engine = engine; _contextType = contextType; }