public async Task <TypesBatchResponse> CreateNewType(string EnvironmentFqdn, IList <TimeSeriesType> value) { TimeSeriesInsightsClient tsi = GetTimeSeriesInsightsClientAsync(EnvironmentFqdn).Result; //all correct TypesBatchResponse types = await tsi.ExecuteTypesBatchOperationAsync(new TypesBatchRequest(put : value)); return(types); }
private static async Task RunTypesBatchAsync() { TypesBatchResponse types = await _client.ExecuteTypesBatchOperationAsync( new TypesBatchRequest( get : new TypesRequestBatchGetOrDelete(typeIds : new List <Guid?>() { Guid.Parse("1BE09AF9-F089-4D6B-9F0B-48018B5F7393") }))); PrintResponse(types.Get.First().TimeSeriesType); }
public async Task <TypesBatchResponse> GetType(string EnvironmentFqdn, string id) { TimeSeriesInsightsClient tsi = GetTimeSeriesInsightsClientAsync(EnvironmentFqdn).Result; TypesBatchResponse types = await tsi.ExecuteTypesBatchOperationAsync( new TypesBatchRequest( get : new TypesRequestBatchGetOrDelete(typeIds : new List <Guid?>() { Guid.Parse(id) }))); return(types); }