public RestQueryProvider(IRestClient client, ISerializerFactory serializerFactory, IExpressionProcessor expressionProcessor, IMemberNameResolver memberNameResolver, IEnumerable <IValueWriter> valueWriters, Type sourceType) { CustomContract.Requires(client != null); CustomContract.Requires(serializerFactory != null); CustomContract.Requires(expressionProcessor != null); CustomContract.Requires(valueWriters != null); Client = client; _serializerFactory = serializerFactory; _expressionProcessor = expressionProcessor; _memberNameResolver = memberNameResolver; _valueWriters = valueWriters; _parameterBuilder = new ParameterBuilder(client.ServiceBase, sourceType ?? typeof(T)); }
public RestGetQueryProvider(IRestClient client, ISerializerFactory serializerFactory, IExpressionProcessor expressionProcessor, IMemberNameResolver memberNameResolver, IEnumerable <IValueWriter> valueWriters, Type sourceType) : base(client, serializerFactory, expressionProcessor, memberNameResolver, valueWriters, sourceType) { Contract.Requires(client != null); Contract.Requires(serializerFactory != null); Contract.Requires(expressionProcessor != null); Contract.Requires(valueWriters != null); Contract.Requires(sourceType != null); }
public RestPutQueryProvider(IRestClient client, ISerializerFactory serializerFactory, IExpressionProcessor expressionProcessor, IMemberNameResolver memberNameResolver, IEnumerable <IValueWriter> valueWriters, Stream inputData, Type sourceType) : base(client, serializerFactory, expressionProcessor, memberNameResolver, valueWriters, sourceType) { CustomContract.Requires(client != null); CustomContract.Requires(serializerFactory != null); CustomContract.Requires(expressionProcessor != null); CustomContract.Requires(valueWriters != null); CustomContract.Requires(inputData != null); _inputData = inputData; }
public SpreadSheetFactory(IExpressionProcessor expressionProcessor, IOnpExpressionHandler expressionHandler) { _expressionProcessor = expressionProcessor; _expressionHandler = expressionHandler; }
public static string GetGageRRFunctionFieldRelationSuffix(IExpressionProcessor function) { return new Regex("[A-Z,0-9]{8}$").Match(function.Id.ToString().ToUpper()).ToString(); }
protected RestQueryProviderContracts(IRestClient client, ISerializerFactory serializerFactory, IMemberNameResolver memberNameResolver, IEnumerable <IValueWriter> valueWriters, IExpressionProcessor expressionProcessor, Type sourceType) : base(client, serializerFactory, expressionProcessor, memberNameResolver, valueWriters, sourceType) { }
private string GetAssignmentForPartAverageFunc(IExpressionServiceBase expressionService, IExpressionProcessor func, SourceField subfield) { var function = func as TwoInOneOutExpression; if (function == null) return string.Empty; var partLabelConnector = function.Connector2In; var partLabelScript = expressionService. PrepareScriptPart(_expressionContainer.Expressions, partLabelConnector); return string.Format(@" msa.SetPartAverageData( SafeTypeConverter.Convert<string>({0}), SafeTypeConverter.Convert<double>({1})); " , partLabelScript , subfield.InnerName); }