/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='deviceId'> /// </param> /// <param name='datapointId'> /// </param> /// <param name='timestamp'> /// </param> /// <param name='value'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <object> AddDeviceDataAsync(this IHistorianService operations, string deviceId, string datapointId = default(string), System.DateTime?timestamp = default(System.DateTime?), double?value = default(double?), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.AddDeviceDataWithHttpMessagesAsync(deviceId, datapointId, timestamp, value, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
public HistorianController(IHistorianService historianService) { _historianService = historianService; }
public StatisticController(ILogger <StatisticController> logger, IHistorianService historianService) { this.logger = logger ?? throw new ArgumentNullException(nameof(logger)); this.historianService = historianService ?? throw new ArgumentNullException(nameof(historianService)); }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='deviceId'> /// </param> /// <param name='datapointId'> /// </param> /// <param name='timestamp'> /// </param> /// <param name='value'> /// </param> public static object AddDeviceData(this IHistorianService operations, string deviceId, string datapointId = default(string), System.DateTime?timestamp = default(System.DateTime?), double?value = default(double?)) { return(operations.AddDeviceDataAsync(deviceId, datapointId, timestamp, value).GetAwaiter().GetResult()); }
public DefaultApiController(IStore store, ILogger <DefaultEventAttribute> logger, IHistorianService historian) { this._store = store; this._logger = logger; this._historian = historian; }