diff --git a/AsbCloudApp/Services/IReportMakerService.cs b/AsbCloudApp/Services/IReportMakerService.cs index e1269a25..b49da8dc 100644 --- a/AsbCloudApp/Services/IReportMakerService.cs +++ b/AsbCloudApp/Services/IReportMakerService.cs @@ -1,6 +1,4 @@ using System.IO; -using System.Threading; -using System.Threading.Tasks; namespace AsbCloudApp.Services; @@ -13,7 +11,6 @@ public interface IReportMakerService /// Генерация файла /// /// модель с данными для построения отчета - /// /// - Task MakeReportAsync(T report, CancellationToken cancellationToken); + Stream MakeReport(T report); } \ No newline at end of file diff --git a/AsbCloudDb/AsbCloudDb.csproj b/AsbCloudDb/AsbCloudDb.csproj index 91328b74..1c815525 100644 --- a/AsbCloudDb/AsbCloudDb.csproj +++ b/AsbCloudDb/AsbCloudDb.csproj @@ -6,11 +6,11 @@ - + all runtime; build; native; contentfiles; analyzers; buildtransitive - + diff --git a/AsbCloudDb/EFExtensions.cs b/AsbCloudDb/EFExtensions.cs index 7df62c52..cb839df9 100644 --- a/AsbCloudDb/EFExtensions.cs +++ b/AsbCloudDb/EFExtensions.cs @@ -45,7 +45,7 @@ namespace AsbCloudDb return builder; } - static Dictionary QueryFactories { get; set; } = new(); + static Dictionary QueryFactories { get; set; } = []; static QueryStringFactory GetQueryStringFactory(DbSet dbSet) where T : class @@ -152,21 +152,21 @@ namespace AsbCloudDb public string TableName { get; } public IEnumerable Columns { get; } - public QueryStringFactory(DbSet dbset) + public QueryStringFactory(DbSet dbSet) { - var properties = dbset.EntityType.GetProperties(); - var pkColsNames = dbset.EntityType.FindPrimaryKey()?.Properties.Select(p => p.GetColumnBaseName()); + var properties = dbSet.EntityType.GetProperties(); + var pkColsNames = dbSet.EntityType.FindPrimaryKey()?.Properties.Select(p => p.GetColumnName()); pk = pkColsNames is null ? string.Empty : $"({string.Join(", ", pkColsNames)})"; - TableName = dbset.EntityType.GetTableName()!; + TableName = dbSet.EntityType.GetTableName()!; getters = properties .Where(p => !p.IsShadowProperty()) .Select(p => p.GetGetter()).ToList(); - Columns = properties.Select(p => $"\"{p.GetColumnBaseName()}\""); - var colunmsString = $"({string.Join(", ", Columns)})"; + Columns = properties.Select(p => $"\"{p.GetColumnName()}\""); + var columnsString = $"({string.Join(", ", Columns)})"; - insertHeader = $"INSERT INTO {TableName} {colunmsString} VALUES "; + insertHeader = $"INSERT INTO {TableName} {columnsString} VALUES "; var excludedUpdateSet = string.Join(", ", Columns.Select(n => $"{n} = excluded.{n}")); conflictBody = $" ON CONFLICT {pk} DO UPDATE SET {excludedUpdateSet};"; } diff --git a/AsbCloudInfrastructure/AssemblyExtensions.cs b/AsbCloudInfrastructure/AssemblyExtensions.cs index b77ed236..79ff0695 100644 --- a/AsbCloudInfrastructure/AssemblyExtensions.cs +++ b/AsbCloudInfrastructure/AssemblyExtensions.cs @@ -2,8 +2,6 @@ using System; using System.IO; using System.Linq; using System.Reflection; -using System.Threading; -using System.Threading.Tasks; namespace AsbCloudInfrastructure { @@ -25,26 +23,7 @@ namespace AsbCloudInfrastructure stream?.CopyTo(memoryStream); memoryStream.Position = 0; - return memoryStream; - } - - [Obsolete] - public static async Task GetTemplateCopyStreamAsync(this Assembly assembly, - string templateName, - CancellationToken cancellationToken) - { - var resourceName = assembly - .GetManifestResourceNames() - .FirstOrDefault(n => n.EndsWith(templateName))!; - - using var stream = Assembly.GetExecutingAssembly() - .GetManifestResourceStream(resourceName)!; - - var memoryStream = new MemoryStream(); - await stream.CopyToAsync(memoryStream, cancellationToken); - memoryStream.Position = 0; - - return memoryStream; - } - } + return memoryStream; + } + } } \ No newline at end of file diff --git a/AsbCloudInfrastructure/Repository/CacheBase.cs b/AsbCloudInfrastructure/Repository/CacheBase.cs index 8db709db..46670658 100644 --- a/AsbCloudInfrastructure/Repository/CacheBase.cs +++ b/AsbCloudInfrastructure/Repository/CacheBase.cs @@ -46,9 +46,9 @@ namespace AsbCloudInfrastructure.Repository return cache!; } - protected virtual Task> GetCacheAsync(CancellationToken token) + protected virtual async Task> GetCacheAsync(CancellationToken token) { - var cache = memoryCache.GetOrCreateAsync(CacheTag, async (cacheEntry) => + var cache = await memoryCache.GetOrCreateAsync(CacheTag, async (cacheEntry) => { cacheEntry.AbsoluteExpirationRelativeToNow = CacheObsolescence; cacheEntry.SlidingExpiration = CacheObsolescence; @@ -57,7 +57,7 @@ namespace AsbCloudInfrastructure.Repository cacheEntry.Value = entities; return entities.AsEnumerable(); }); - return cache; + return cache!; } } diff --git a/AsbCloudInfrastructure/Services/DailyReport/DailyReportExportService.cs b/AsbCloudInfrastructure/Services/DailyReport/DailyReportExportService.cs index 1669c5cc..52d2c5db 100644 --- a/AsbCloudInfrastructure/Services/DailyReport/DailyReportExportService.cs +++ b/AsbCloudInfrastructure/Services/DailyReport/DailyReportExportService.cs @@ -30,9 +30,9 @@ public class DailyReportExportService : IDailyReportExportService private const int columnTimeBalanceDrillingDeviationPerSection = 10; private const int columnTimeBalanceDrillingDeviationPerDay = 11; - private const int columnSheduleDriller = 3; - private const int columnSheduleShiftStart = 7; - private const int columnSheduleShiftEnd = 8; + private const int columnScheduleDriller = 3; + private const int columnScheduleShiftStart = 7; + private const int columnScheduleShiftEnd = 8; private const int columnSubsystemName = 2; private const int columnUseSubsystemPerDayUsedTimeHours = 3; @@ -93,18 +93,18 @@ public class DailyReportExportService : IDailyReportExportService { var dailyReport = await dailyReportService.GetAsync(idWell, dailyReportDate, cancellationToken); - var stream = await GenerateFileAsync(dailyReport, cancellationToken); + var stream = GenerateFile(dailyReport); var fileName = $"Суточный_рапорт_по_скважине_{dailyReport.WellCaption}_куст_{dailyReport.Cluster}_от_{dailyReport.Date:yy-MM-dd}.xlsx"; return (fileName, stream); } - private static async Task GenerateFileAsync(DailyReportDto dailyReport, CancellationToken cancellationToken) - { - using var excelTemplateStream = await Assembly - .GetExecutingAssembly() - .GetTemplateCopyStreamAsync("DailyReportTemplate.xlsx", cancellationToken); + private static MemoryStream GenerateFile(DailyReportDto dailyReport) + { + using var excelTemplateStream = Assembly + .GetExecutingAssembly() + .GetTemplateCopyStream("DailyReportTemplate.xlsx"); using var workbook = new XLWorkbook(excelTemplateStream); @@ -176,23 +176,23 @@ public class DailyReportExportService : IDailyReportExportService sheet.Cell(cellTimeBalanceBlockWellOperationSlipsTimeCount).SetCellValue(timeBalanceBlock.WellOperationSlipsTimeCount); } - private static void AddSubsystemBlockToSheet(IXLWorksheet sheet, SubsystemBlockDto subsystemBlock) - { - var rowСurrent = rowStartSubsystemBlock; + private static void AddSubsystemBlockToSheet(IXLWorksheet sheet, SubsystemBlockDto subsystemBlock) + { + var rowCurrent = rowStartSubsystemBlock; - foreach (var subsystem in subsystemBlock.Subsystems) - { - sheet.Cell(rowСurrent, columnSubsystemName).SetCellValue(subsystem.Name); - sheet.Cell(rowСurrent, columnUseSubsystemPerDayUsedTimeHours).SetCellValue(subsystem.UsagePerDay?.UsedTimeHours); - sheet.Cell(rowСurrent, columnUseSubsystemPerDaySumDepthInterval).SetCellValue(subsystem.UsagePerDay?.SumDepthInterval); - sheet.Cell(rowСurrent, columnUseSubsystemPerDayKUsage).SetCellValue(subsystem.UsagePerDay?.KUsage * 100); + foreach (var subsystem in subsystemBlock.Subsystems) + { + sheet.Cell(rowCurrent, columnSubsystemName).SetCellValue(subsystem.Name); + sheet.Cell(rowCurrent, columnUseSubsystemPerDayUsedTimeHours).SetCellValue(subsystem.UsagePerDay?.UsedTimeHours); + sheet.Cell(rowCurrent, columnUseSubsystemPerDaySumDepthInterval).SetCellValue(subsystem.UsagePerDay?.SumDepthInterval); + sheet.Cell(rowCurrent, columnUseSubsystemPerDayKUsage).SetCellValue(subsystem.UsagePerDay?.KUsage * 100); - sheet.Cell(rowСurrent, columnUseSubsystemPerWellUsedTimeHours).SetCellValue(subsystem.UsagePerWell?.UsedTimeHours); - sheet.Cell(rowСurrent, columnUseSubsystemPerWellSumDepthInterval).SetCellValue(subsystem.UsagePerWell?.SumDepthInterval); - sheet.Cell(rowСurrent, columnUseSubsystemPerWellKUsage).SetCellValue(subsystem.UsagePerWell?.KUsage * 100); + sheet.Cell(rowCurrent, columnUseSubsystemPerWellUsedTimeHours).SetCellValue(subsystem.UsagePerWell?.UsedTimeHours); + sheet.Cell(rowCurrent, columnUseSubsystemPerWellSumDepthInterval).SetCellValue(subsystem.UsagePerWell?.SumDepthInterval); + sheet.Cell(rowCurrent, columnUseSubsystemPerWellKUsage).SetCellValue(subsystem.UsagePerWell?.KUsage * 100); - rowСurrent++; - } + rowCurrent++; + } sheet.Cell(cellSubsystemComment).SetCellValue(subsystemBlock.Comment); sheet.Cell(cellSubsystemTvgLagDays).SetCellValue(subsystemBlock.TvgLagDays); @@ -205,11 +205,11 @@ public class DailyReportExportService : IDailyReportExportService { var rowCurrent = rowStartScheduleBlock; - foreach (var schedule in scheduleBlock.OrderBy(s => s.ShiftStart)) - { - sheet.Cell(rowCurrent, columnSheduleDriller).SetCellValue($"{schedule.Surname} {schedule.Name} {schedule.Patronymic}"); - sheet.Cell(rowCurrent, columnSheduleShiftStart).SetCellValue(schedule.ShiftStart); - sheet.Cell(rowCurrent, columnSheduleShiftEnd).SetCellValue(schedule.ShiftEnd); + foreach (var schedule in scheduleBlock.OrderBy(s => s.ShiftStart)) + { + sheet.Cell(rowCurrent, columnScheduleDriller).SetCellValue($"{schedule.Surname} {schedule.Name} {schedule.Patronymic}"); + sheet.Cell(rowCurrent, columnScheduleShiftStart).SetCellValue(schedule.ShiftStart); + sheet.Cell(rowCurrent, columnScheduleShiftEnd).SetCellValue(schedule.ShiftEnd); rowCurrent++; } diff --git a/AsbCloudInfrastructure/Services/DrillTestReport/DrillTestReportMakerService.cs b/AsbCloudInfrastructure/Services/DrillTestReport/DrillTestReportMakerService.cs index 1519d5bd..f110a2e2 100644 --- a/AsbCloudInfrastructure/Services/DrillTestReport/DrillTestReportMakerService.cs +++ b/AsbCloudInfrastructure/Services/DrillTestReport/DrillTestReportMakerService.cs @@ -16,9 +16,9 @@ namespace AsbCloudInfrastructure.Services.DrillTestReport private readonly string sheetName = "Лист1"; private readonly int startRowNumber = 8; - public async Task MakeReportAsync(DrillTestReportDataDto report, CancellationToken cancellationToken) + public Stream MakeReport(DrillTestReportDataDto report) { - using var excelTemplateStream = await Assembly.GetExecutingAssembly().GetTemplateCopyStreamAsync(templateName, cancellationToken); + using var excelTemplateStream = Assembly.GetExecutingAssembly().GetTemplateCopyStream(templateName); using var workbook = new XLWorkbook(excelTemplateStream); diff --git a/AsbCloudInfrastructure/Services/DrillTestReport/DrillTestReportService.cs b/AsbCloudInfrastructure/Services/DrillTestReport/DrillTestReportService.cs index 970d9b73..c5f43855 100644 --- a/AsbCloudInfrastructure/Services/DrillTestReport/DrillTestReportService.cs +++ b/AsbCloudInfrastructure/Services/DrillTestReport/DrillTestReportService.cs @@ -53,7 +53,7 @@ namespace AsbCloudInfrastructure.Services.DrillTestReport }; var fileName = string.Format("Drill_test_{0}.xlsx", dto.TimeStampStart.ToString("dd.mm.yyyy_HH_MM_ss")); - var stream = await drillTestReportMakerService.MakeReportAsync(report, cancellationToken); + var stream = drillTestReportMakerService.MakeReport(report); return (fileName, stream); } diff --git a/AsbCloudInfrastructure/Services/ProcessMaps/Report/ProcessMapReportDrillingService.cs b/AsbCloudInfrastructure/Services/ProcessMaps/Report/ProcessMapReportDrillingService.cs index ce87e457..e0d1287d 100644 --- a/AsbCloudInfrastructure/Services/ProcessMaps/Report/ProcessMapReportDrillingService.cs +++ b/AsbCloudInfrastructure/Services/ProcessMaps/Report/ProcessMapReportDrillingService.cs @@ -53,8 +53,6 @@ public class ProcessMapReportDrillingService : IProcessMapReportDrillingService var requestProcessMapPlan = new ProcessMapPlanBaseRequestWithWell(idWell); - - var changeLogProcessMapsRotor = await processMapPlanRotorRepository.GetChangeLogForDate(requestProcessMapPlan, null, token); var changeLogProcessMapsSlide = await processMapPlanSlideRepository.GetChangeLogForDate(requestProcessMapPlan, null, token); diff --git a/AsbCloudInfrastructure/Services/SAUB/TelemetryDataCache.cs b/AsbCloudInfrastructure/Services/SAUB/TelemetryDataCache.cs index fc0c9354..f80ccaa7 100644 --- a/AsbCloudInfrastructure/Services/SAUB/TelemetryDataCache.cs +++ b/AsbCloudInfrastructure/Services/SAUB/TelemetryDataCache.cs @@ -110,7 +110,7 @@ public class TelemetryDataCache : ITelemetryDataCache where TDto : A var cacheLastData = cacheItem.LastData; - if (!cacheLastData.Any() || cacheLastData[0].DateTime > dateBegin) + if (cacheLastData.Count == 0 || cacheLastData[0].DateTime > dateBegin) return null; var dateEnd = dateBegin.AddSeconds(intervalSec); @@ -150,7 +150,7 @@ public class TelemetryDataCache : ITelemetryDataCache where TDto : A if (!caches.TryGetValue(idTelemetry, out TelemetryDataCacheItem? cacheItem)) return null; - if (!cacheItem.LastData.Any()) + if (cacheItem.LastData.Count == 0) return null; var to = FromDate(cacheItem.FirstByDate.DateTime, cacheItem.TimezoneOffset); @@ -178,7 +178,7 @@ public class TelemetryDataCache : ITelemetryDataCache where TDto : A if (!caches.TryGetValue(idTelemetry, out TelemetryDataCacheItem? cacheItem)) return null; - if (!cacheItem.LastData.Any()) + if (cacheItem.LastData.Count == 0) return null; var last = cacheItem.LastData[^1]; diff --git a/AsbCloudInfrastructure/Services/WellInfoService.cs b/AsbCloudInfrastructure/Services/WellInfoService.cs index 735d3f1d..483eb6f3 100644 --- a/AsbCloudInfrastructure/Services/WellInfoService.cs +++ b/AsbCloudInfrastructure/Services/WellInfoService.cs @@ -74,7 +74,7 @@ public class WellInfoService var i = 0d; WellMapInfo = activeWells.Select(well => { - var wellMapInfo = well.Adapt(); + var wellMapInfo = well.Adapt(); wellMapInfo.IdState = well.IdState; onProgressCallback($"Start updating info by well({well.Id}): {well.Caption}", i++ / count); double? currentDepth = null; @@ -208,7 +208,7 @@ public class WellInfoService } } - class WellMapInfoWithComanies : WellMapInfoDto + class WellMapInfoWithCompanies : WellMapInfoDto { public int? IdTelemetry { get; set; } public IEnumerable IdsCompanies { get; set; } = null!; @@ -219,7 +219,7 @@ public class WellInfoService private readonly IWitsRecordRepository witsRecord7Repository; private readonly IWitsRecordRepository witsRecord1Repository; private readonly IGtrRepository gtrRepository; - private static IEnumerable WellMapInfo = Enumerable.Empty(); + private static IEnumerable WellMapInfo = []; public WellInfoService( ITelemetryDataCache telemetryDataSaubCache, @@ -236,7 +236,7 @@ public class WellInfoService this.gtrRepository = gtrRepository; } - private WellMapInfoWithTelemetryStat Convert(WellMapInfoWithComanies wellInfo) + private WellMapInfoWithTelemetryStat Convert(WellMapInfoWithCompanies wellInfo) { var result = wellInfo.Adapt(); if (wellInfo.IdTelemetry.HasValue) @@ -271,8 +271,8 @@ public class WellInfoService public WellMapInfoWithTelemetryStat? FirstOrDefault(Func predicate) { var first = WellMapInfo.FirstOrDefault(predicate); - if (first is WellMapInfoWithComanies wellMapInfoWithComanies) - return Convert(wellMapInfoWithComanies); + if (first is WellMapInfoWithCompanies wellMapInfoWithCompanies) + return Convert(wellMapInfoWithCompanies); return null; } diff --git a/AsbCloudWebApi.IntegrationTests/AsbCloudWebApi.IntegrationTests.csproj b/AsbCloudWebApi.IntegrationTests/AsbCloudWebApi.IntegrationTests.csproj index 5bff4d9f..3b2c58cf 100644 --- a/AsbCloudWebApi.IntegrationTests/AsbCloudWebApi.IntegrationTests.csproj +++ b/AsbCloudWebApi.IntegrationTests/AsbCloudWebApi.IntegrationTests.csproj @@ -8,11 +8,11 @@ - - - - - + + + + + runtime; build; native; contentfiles; analyzers; buildtransitive all diff --git a/AsbCloudWebApi.Tests/AsbCloudWebApi.Tests.csproj b/AsbCloudWebApi.Tests/AsbCloudWebApi.Tests.csproj index 6305415b..9d052820 100644 --- a/AsbCloudWebApi.Tests/AsbCloudWebApi.Tests.csproj +++ b/AsbCloudWebApi.Tests/AsbCloudWebApi.Tests.csproj @@ -17,11 +17,11 @@ - - + + - - + + runtime; build; native; contentfiles; analyzers; buildtransitive all diff --git a/AsbCloudWebApi/AsbCloudWebApi.csproj b/AsbCloudWebApi/AsbCloudWebApi.csproj index 0537c3aa..23e0f7a4 100644 --- a/AsbCloudWebApi/AsbCloudWebApi.csproj +++ b/AsbCloudWebApi/AsbCloudWebApi.csproj @@ -10,16 +10,16 @@ - - + + all runtime; build; native; contentfiles; analyzers; buildtransitive - - - + + + diff --git a/AsbCloudWebApi/ProtobufModel.cs b/AsbCloudWebApi/ProtobufModel.cs index 5a248551..0eeb2c8a 100644 --- a/AsbCloudWebApi/ProtobufModel.cs +++ b/AsbCloudWebApi/ProtobufModel.cs @@ -1,380 +1,377 @@ using AsbCloudApp.Data.SAUB; using ProtoBuf.Meta; -namespace AsbCloudWebApi +namespace AsbCloudWebApi; + +public static class ProtobufModel { - public static class ProtobufModel + private static readonly object SyncRoot = new(); + + public static void EnsureRegistered() { - private static readonly object SyncRoot = new(); - - public static void EnshureRegistered() + lock (SyncRoot) { - lock (SyncRoot) - { - EnshureRegisteredDataSpin(); - EnshureRegisteredDataSaub(); - EnshureRegisteredWITS(); - EnshureRegisteredWirelineRunOutBaseDto(); - EnshureRegisteredWirelineRunOutDto(); - } - } - - private static void EnshureRegisteredWirelineRunOutBaseDto() - { - var type = typeof(TelemetryWirelineRunOutBaseDto); - if (RuntimeTypeModel.Default.IsDefined(type)) - return; - RuntimeTypeModel.Default.Add(type, false) - .Add(1, nameof(TelemetryWirelineRunOutBaseDto.DateTime)) - .Add(2, nameof(TelemetryWirelineRunOutBaseDto.Hauling)) - .Add(3, nameof(TelemetryWirelineRunOutBaseDto.HaulingWarnSp)) - .Add(4, nameof(TelemetryWirelineRunOutBaseDto.Replace)) - .Add(5, nameof(TelemetryWirelineRunOutBaseDto.ReplaceWarnSp)); - } - - private static void EnshureRegisteredWirelineRunOutDto() - { - var type = typeof(TelemetryWirelineRunOutDto); - if (RuntimeTypeModel.Default.IsDefined(type)) - return; - RuntimeTypeModel.Default.Add(type, false) - .Add(1, nameof(TelemetryWirelineRunOutDto.DateTime)) - .Add(2, nameof(TelemetryWirelineRunOutDto.Hauling)) - .Add(3, nameof(TelemetryWirelineRunOutDto.HaulingWarnSp)) - .Add(4, nameof(TelemetryWirelineRunOutDto.Replace)) - .Add(5, nameof(TelemetryWirelineRunOutDto.ReplaceWarnSp)); - } - - private static void EnshureRegisteredWITS() - { - EnshureRegisteredRecord1(); - EnshureRegisteredRecord7(); - EnshureRegisteredRecord8(); - EnshureRegisteredRecord50(); - EnshureRegisteredRecord60(); - EnshureRegisteredRecord61(); - } - - private static void EnshureRegisteredRecord1() - { - var type = typeof(AsbCloudApp.Data.WITS.Record1Dto); - if (RuntimeTypeModel.Default.IsDefined(type)) - return; - var i = 1; - RuntimeTypeModel.Default.Add(type, false) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record1Dto.Id)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record1Dto.IdTelemetry)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record1Dto.DateTime)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record1Dto.TimeStamp)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record1Dto.Wellid)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record1Dto.Stknum)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record1Dto.Recid)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record1Dto.Seqid)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record1Dto.Date_)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record1Dto.Time)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record1Dto.Actcod)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record1Dto.Deptbitm)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record1Dto.Deptbitv)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record1Dto.Deptmeas)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record1Dto.Deptvert)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record1Dto.Blkpos)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record1Dto.Ropa)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record1Dto.Hkla)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record1Dto.Hklx)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record1Dto.Woba)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record1Dto.Wobx)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record1Dto.Torqa)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record1Dto.Torqx)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record1Dto.Rpma)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record1Dto.Sppa)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record1Dto.Chkp)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record1Dto.Spm1)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record1Dto.Spm2)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record1Dto.Spm3)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record1Dto.Tvolact)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record1Dto.Tvolcact)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record1Dto.Mfop)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record1Dto.Mfoa)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record1Dto.Mfia)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record1Dto.Mdoa)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record1Dto.Mdia)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record1Dto.Mtoa)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record1Dto.Mtia)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record1Dto.Mcoa)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record1Dto.Mcia)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record1Dto.Stkc)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record1Dto.Lagstks)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record1Dto.Deptretm)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record1Dto.Gasa)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record1Dto.Spare1)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record1Dto.Spare2)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record1Dto.Spare3)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record1Dto.Spare4)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record1Dto.Spare5)) - ; - } - - private static void EnshureRegisteredRecord7() - { - var type = typeof(AsbCloudApp.Data.WITS.Record7Dto); - if (RuntimeTypeModel.Default.IsDefined(type)) - return; - var i = 1; - RuntimeTypeModel.Default.Add(type, false) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record7Dto.Id)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record7Dto.IdTelemetry)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record7Dto.DateTime)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record7Dto.TimeStamp)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record7Dto.Wellid)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record7Dto.Stknum)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record7Dto.Recid)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record7Dto.Seqid)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record7Dto.Date_)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record7Dto.Time)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record7Dto.Actcod)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record7Dto.Deptsvym)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record7Dto.Deptsvyv)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record7Dto.Passnum)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record7Dto.Deptmeas)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record7Dto.Svytype)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record7Dto.Svyinc)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record7Dto.Svyazu)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record7Dto.Svyazc)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record7Dto.Svymtf)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record7Dto.Svygtf)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record7Dto.Svyns)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record7Dto.Svyew)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record7Dto.Svydls)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record7Dto.Svywalk)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record7Dto.Spare1)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record7Dto.Spare2)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record7Dto.Spare3)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record7Dto.Spare4)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record7Dto.Spare5)) - ; - } - - private static void EnshureRegisteredRecord8() - { - var type = typeof(AsbCloudApp.Data.WITS.Record8Dto); - if (RuntimeTypeModel.Default.IsDefined(type)) - return; - var i = 1; - RuntimeTypeModel.Default.Add(type, false) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record8Dto.Id)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record8Dto.IdTelemetry)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record8Dto.DateTime)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record8Dto.TimeStamp)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record8Dto.Wellid)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record8Dto.Stknum)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record8Dto.Recid)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record8Dto.Seqid)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record8Dto.Date_)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record8Dto.Time)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record8Dto.Actcod)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record8Dto.Deptmeas)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record8Dto.Deptvert)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record8Dto.Deptbitm)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record8Dto.Deptbitv)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record8Dto.Passnum)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record8Dto.Deptrs1m)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record8Dto.Deptrs1v)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record8Dto.Mr1)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record8Dto.Mr1c)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record8Dto.Deptrs2m)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record8Dto.Deptrs2v)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record8Dto.Mr2)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record8Dto.Mr2c)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record8Dto.Deptgr1m)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record8Dto.Deptgr1v)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record8Dto.Mg1)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record8Dto.Mg1c)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record8Dto.Deptgr2m)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record8Dto.Deptgr2v)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record8Dto.Mg2)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record8Dto.Mg2c)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record8Dto.Deptp1m)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record8Dto.Deptp1v)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record8Dto.Mpo1)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record8Dto.Deptp2m)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record8Dto.Deptp2v)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record8Dto.Mpo2)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record8Dto.Mftann)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record8Dto.Mftpipe)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record8Dto.Mfrann)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record8Dto.Mfrpipe)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record8Dto.Deptfdm)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record8Dto.Deptfdv)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record8Dto.Mfd)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record8Dto.Deptcalm)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record8Dto.Deptcalv)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record8Dto.Mclp)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record8Dto.Mfpp)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record8Dto.Mffp)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record8Dto.Spare1)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record8Dto.Spare2)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record8Dto.Spare3)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record8Dto.Spare4)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record8Dto.Spare5)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record8Dto.Spare6)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record8Dto.Spare7)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record8Dto.Spare8)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record8Dto.Spare9)) - ; - } - - private static void EnshureRegisteredRecord60() - { - var type = typeof(AsbCloudApp.Data.WITS.Record60Dto); - if (RuntimeTypeModel.Default.IsDefined(type)) - return; - var i = 1; - RuntimeTypeModel.Default.Add(type, false) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record60Dto.Id)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record60Dto.IdTelemetry)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record60Dto.DateTime)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record60Dto.TimeStamp)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record60Dto.Deptbitm)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record60Dto.Deptmeas)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record60Dto.Gtot)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record60Dto.Gx)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record60Dto.Gy)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record60Dto.Gz)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record60Dto.Btot)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record60Dto.Bx)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record60Dto.By)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record60Dto.Bz)) - ; - } - - private static void EnshureRegisteredRecord61() - { - var type = typeof(AsbCloudApp.Data.WITS.Record61Dto); - if (RuntimeTypeModel.Default.IsDefined(type)) - return; - var i = 1; - RuntimeTypeModel.Default.Add(type, false) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record61Dto.Id)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record61Dto.IdTelemetry)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record61Dto.DateTime)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record61Dto.TimeStamp)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record61Dto.Deptbitm)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record61Dto.Deptmeas)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record61Dto.Phl1f1)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record61Dto.Phl1f2)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record61Dto.Phl2f1)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record61Dto.Phl2f2)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record61Dto.Att06h)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record61Dto.Att06l)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record61Dto.Att10h)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record61Dto.Att10l)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record61Dto.Status)) - ; - } - - private static void EnshureRegisteredRecord50() - { - var type = typeof(AsbCloudApp.Data.WITS.Record50Dto); - if (RuntimeTypeModel.Default.IsDefined(type)) - return; - var i = 1; - RuntimeTypeModel.Default.Add(type, false) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record50Dto.Id)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record50Dto.IdTelemetry)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record50Dto.DateTime)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record50Dto.TimeStamp)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record50Dto.Deptbitm)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record50Dto.DeptmeasMcrstat)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record50Dto.Mcrstat)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record50Dto.DeptmeasSlvlMc)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record50Dto.SlvlMc)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record50Dto.DeptmeasGdpMc)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record50Dto.GdpMc)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record50Dto.DeptmeasRa33f2Mc)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record50Dto.Ra33f2Mc)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record50Dto.DeptmeasRp33f2Mc)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record50Dto.Rp33f2Mc)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record50Dto.DeptmeasRa33f4Mc)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record50Dto.Ra33f4Mc)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record50Dto.DeptmeasRp33f4Mc)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record50Dto.Rp33f4Mc)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record50Dto.DeptmeasRa33Mc)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record50Dto.Ra33Mc)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record50Dto.DeptmeasRp33Mc)) - .Add(i++, nameof(AsbCloudApp.Data.WITS.Record50Dto.Rp33Mc)) - ; - } - - - - static void EnshureRegisteredDataSpin() - { - var type = typeof(TelemetryDataSpinDto); - if (RuntimeTypeModel.Default.IsDefined(type)) - return; - RuntimeTypeModel.Default.Add(type, false) - .Add(1, nameof(TelemetryDataSpinDto.IdTelemetry)) - .Add(2, nameof(TelemetryDataSpinDto.DateTime)) - .Add(35, nameof(TelemetryDataSpinDto.Mode)) - .Add(43, nameof(TelemetryDataSpinDto.RevolsRightLimit)) - .Add(44, nameof(TelemetryDataSpinDto.RevolsLeftLimit)) - .Add(45, nameof(TelemetryDataSpinDto.SpeedRightSp)) - .Add(46, nameof(TelemetryDataSpinDto.SpeedLeftSp)) - .Add(47, nameof(TelemetryDataSpinDto.RevolsRightTotal)) - .Add(48, nameof(TelemetryDataSpinDto.RevolsLeftTotal)) - .Add(57, nameof(TelemetryDataSpinDto.PositionZero)) - .Add(58, nameof(TelemetryDataSpinDto.PositionRight)) - .Add(64, nameof(TelemetryDataSpinDto.State)); - } - - static void EnshureRegisteredDataSaub() - { - var type = typeof(TelemetryDataSaubDto); - if (RuntimeTypeModel.Default.IsDefined(type)) - return; - RuntimeTypeModel.Default.Add(type, false) - .Add(1, nameof(TelemetryDataSaubDto.IdTelemetry)) - .Add(2, nameof(TelemetryDataSaubDto.DateTime)) - .Add(3, nameof(TelemetryDataSaubDto.Mode)) - .Add(4, nameof(TelemetryDataSaubDto.User)) - .Add(5, nameof(TelemetryDataSaubDto.WellDepth)) - .Add(6, nameof(TelemetryDataSaubDto.BitDepth)) - .Add(7, nameof(TelemetryDataSaubDto.BlockPosition)) - .Add(8, nameof(TelemetryDataSaubDto.BlockPositionMin)) - .Add(9, nameof(TelemetryDataSaubDto.BlockPositionMax)) - .Add(10, nameof(TelemetryDataSaubDto.BlockSpeed)) - .Add(11, nameof(TelemetryDataSaubDto.BlockSpeedSp)) - .Add(12, nameof(TelemetryDataSaubDto.BlockSpeedSpRotor)) - .Add(13, nameof(TelemetryDataSaubDto.BlockSpeedSpSlide)) - .Add(14, nameof(TelemetryDataSaubDto.BlockSpeedSpDevelop)) - .Add(15, nameof(TelemetryDataSaubDto.Pressure)) - .Add(16, nameof(TelemetryDataSaubDto.PressureIdle)) - .Add(17, nameof(TelemetryDataSaubDto.PressureSp)) - .Add(18, nameof(TelemetryDataSaubDto.PressureSpRotor)) - .Add(19, nameof(TelemetryDataSaubDto.PressureSpSlide)) - .Add(20, nameof(TelemetryDataSaubDto.PressureSpDevelop)) - .Add(21, nameof(TelemetryDataSaubDto.PressureDeltaLimitMax)) - .Add(22, nameof(TelemetryDataSaubDto.AxialLoad)) - .Add(23, nameof(TelemetryDataSaubDto.AxialLoadSp)) - .Add(24, nameof(TelemetryDataSaubDto.AxialLoadLimitMax)) - .Add(25, nameof(TelemetryDataSaubDto.HookWeight)) - .Add(26, nameof(TelemetryDataSaubDto.HookWeightIdle)) - .Add(27, nameof(TelemetryDataSaubDto.HookWeightLimitMin)) - .Add(28, nameof(TelemetryDataSaubDto.HookWeightLimitMax)) - .Add(29, nameof(TelemetryDataSaubDto.RotorTorque)) - .Add(30, nameof(TelemetryDataSaubDto.RotorTorqueIdle)) - .Add(31, nameof(TelemetryDataSaubDto.RotorTorqueSp)) - .Add(32, nameof(TelemetryDataSaubDto.RotorTorqueLimitMax)) - .Add(33, nameof(TelemetryDataSaubDto.RotorSpeed)) - .Add(34, nameof(TelemetryDataSaubDto.Flow)) - .Add(35, nameof(TelemetryDataSaubDto.FlowIdle)) - .Add(36, nameof(TelemetryDataSaubDto.FlowDeltaLimitMax)) - .Add(37, nameof(TelemetryDataSaubDto.IdFeedRegulator)) - .Add(38, nameof(TelemetryDataSaubDto.MseState)) - .Add(39, nameof(TelemetryDataSaubDto.Mse)) - .Add(40, nameof(TelemetryDataSaubDto.Pump0Flow)) - .Add(41, nameof(TelemetryDataSaubDto.Pump1Flow)) - .Add(42, nameof(TelemetryDataSaubDto.Pump2Flow)); + EnsureRegisteredDataSpin(); + EnsureRegisteredDataSaub(); + EnsureRegisteredWITS(); + EnsureRegisteredWirelineRunOutBaseDto(); + EnsureRegisteredWirelineRunOutDto(); } } + + private static void EnsureRegisteredWirelineRunOutBaseDto() + { + var type = typeof(TelemetryWirelineRunOutBaseDto); + if (RuntimeTypeModel.Default.IsDefined(type)) + return; + RuntimeTypeModel.Default.Add(type, false) + .Add(1, nameof(TelemetryWirelineRunOutBaseDto.DateTime)) + .Add(2, nameof(TelemetryWirelineRunOutBaseDto.Hauling)) + .Add(3, nameof(TelemetryWirelineRunOutBaseDto.HaulingWarnSp)) + .Add(4, nameof(TelemetryWirelineRunOutBaseDto.Replace)) + .Add(5, nameof(TelemetryWirelineRunOutBaseDto.ReplaceWarnSp)); + } + + private static void EnsureRegisteredWirelineRunOutDto() + { + var type = typeof(TelemetryWirelineRunOutDto); + if (RuntimeTypeModel.Default.IsDefined(type)) + return; + RuntimeTypeModel.Default.Add(type, false) + .Add(1, nameof(TelemetryWirelineRunOutDto.DateTime)) + .Add(2, nameof(TelemetryWirelineRunOutDto.Hauling)) + .Add(3, nameof(TelemetryWirelineRunOutDto.HaulingWarnSp)) + .Add(4, nameof(TelemetryWirelineRunOutDto.Replace)) + .Add(5, nameof(TelemetryWirelineRunOutDto.ReplaceWarnSp)); + } + + private static void EnsureRegisteredWITS() + { + EnsureRegisteredRecord1(); + EnsureRegisteredRecord7(); + EnsureRegisteredRecord8(); + EnsureRegisteredRecord50(); + EnsureRegisteredRecord60(); + EnsureRegisteredRecord61(); + } + + private static void EnsureRegisteredRecord1() + { + var type = typeof(AsbCloudApp.Data.WITS.Record1Dto); + if (RuntimeTypeModel.Default.IsDefined(type)) + return; + var i = 1; + RuntimeTypeModel.Default.Add(type, false) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record1Dto.Id)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record1Dto.IdTelemetry)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record1Dto.DateTime)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record1Dto.TimeStamp)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record1Dto.Wellid)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record1Dto.Stknum)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record1Dto.Recid)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record1Dto.Seqid)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record1Dto.Date_)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record1Dto.Time)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record1Dto.Actcod)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record1Dto.Deptbitm)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record1Dto.Deptbitv)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record1Dto.Deptmeas)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record1Dto.Deptvert)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record1Dto.Blkpos)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record1Dto.Ropa)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record1Dto.Hkla)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record1Dto.Hklx)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record1Dto.Woba)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record1Dto.Wobx)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record1Dto.Torqa)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record1Dto.Torqx)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record1Dto.Rpma)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record1Dto.Sppa)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record1Dto.Chkp)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record1Dto.Spm1)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record1Dto.Spm2)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record1Dto.Spm3)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record1Dto.Tvolact)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record1Dto.Tvolcact)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record1Dto.Mfop)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record1Dto.Mfoa)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record1Dto.Mfia)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record1Dto.Mdoa)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record1Dto.Mdia)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record1Dto.Mtoa)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record1Dto.Mtia)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record1Dto.Mcoa)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record1Dto.Mcia)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record1Dto.Stkc)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record1Dto.Lagstks)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record1Dto.Deptretm)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record1Dto.Gasa)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record1Dto.Spare1)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record1Dto.Spare2)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record1Dto.Spare3)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record1Dto.Spare4)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record1Dto.Spare5)) + ; + } + + private static void EnsureRegisteredRecord7() + { + var type = typeof(AsbCloudApp.Data.WITS.Record7Dto); + if (RuntimeTypeModel.Default.IsDefined(type)) + return; + var i = 1; + RuntimeTypeModel.Default.Add(type, false) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record7Dto.Id)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record7Dto.IdTelemetry)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record7Dto.DateTime)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record7Dto.TimeStamp)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record7Dto.Wellid)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record7Dto.Stknum)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record7Dto.Recid)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record7Dto.Seqid)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record7Dto.Date_)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record7Dto.Time)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record7Dto.Actcod)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record7Dto.Deptsvym)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record7Dto.Deptsvyv)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record7Dto.Passnum)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record7Dto.Deptmeas)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record7Dto.Svytype)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record7Dto.Svyinc)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record7Dto.Svyazu)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record7Dto.Svyazc)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record7Dto.Svymtf)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record7Dto.Svygtf)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record7Dto.Svyns)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record7Dto.Svyew)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record7Dto.Svydls)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record7Dto.Svywalk)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record7Dto.Spare1)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record7Dto.Spare2)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record7Dto.Spare3)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record7Dto.Spare4)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record7Dto.Spare5)) + ; + } + + private static void EnsureRegisteredRecord8() + { + var type = typeof(AsbCloudApp.Data.WITS.Record8Dto); + if (RuntimeTypeModel.Default.IsDefined(type)) + return; + var i = 1; + RuntimeTypeModel.Default.Add(type, false) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record8Dto.Id)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record8Dto.IdTelemetry)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record8Dto.DateTime)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record8Dto.TimeStamp)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record8Dto.Wellid)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record8Dto.Stknum)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record8Dto.Recid)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record8Dto.Seqid)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record8Dto.Date_)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record8Dto.Time)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record8Dto.Actcod)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record8Dto.Deptmeas)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record8Dto.Deptvert)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record8Dto.Deptbitm)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record8Dto.Deptbitv)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record8Dto.Passnum)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record8Dto.Deptrs1m)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record8Dto.Deptrs1v)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record8Dto.Mr1)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record8Dto.Mr1c)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record8Dto.Deptrs2m)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record8Dto.Deptrs2v)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record8Dto.Mr2)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record8Dto.Mr2c)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record8Dto.Deptgr1m)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record8Dto.Deptgr1v)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record8Dto.Mg1)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record8Dto.Mg1c)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record8Dto.Deptgr2m)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record8Dto.Deptgr2v)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record8Dto.Mg2)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record8Dto.Mg2c)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record8Dto.Deptp1m)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record8Dto.Deptp1v)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record8Dto.Mpo1)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record8Dto.Deptp2m)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record8Dto.Deptp2v)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record8Dto.Mpo2)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record8Dto.Mftann)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record8Dto.Mftpipe)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record8Dto.Mfrann)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record8Dto.Mfrpipe)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record8Dto.Deptfdm)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record8Dto.Deptfdv)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record8Dto.Mfd)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record8Dto.Deptcalm)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record8Dto.Deptcalv)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record8Dto.Mclp)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record8Dto.Mfpp)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record8Dto.Mffp)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record8Dto.Spare1)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record8Dto.Spare2)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record8Dto.Spare3)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record8Dto.Spare4)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record8Dto.Spare5)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record8Dto.Spare6)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record8Dto.Spare7)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record8Dto.Spare8)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record8Dto.Spare9)) + ; + } + + private static void EnsureRegisteredRecord60() + { + var type = typeof(AsbCloudApp.Data.WITS.Record60Dto); + if (RuntimeTypeModel.Default.IsDefined(type)) + return; + var i = 1; + RuntimeTypeModel.Default.Add(type, false) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record60Dto.Id)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record60Dto.IdTelemetry)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record60Dto.DateTime)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record60Dto.TimeStamp)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record60Dto.Deptbitm)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record60Dto.Deptmeas)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record60Dto.Gtot)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record60Dto.Gx)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record60Dto.Gy)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record60Dto.Gz)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record60Dto.Btot)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record60Dto.Bx)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record60Dto.By)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record60Dto.Bz)) + ; + } + + private static void EnsureRegisteredRecord61() + { + var type = typeof(AsbCloudApp.Data.WITS.Record61Dto); + if (RuntimeTypeModel.Default.IsDefined(type)) + return; + var i = 1; + RuntimeTypeModel.Default.Add(type, false) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record61Dto.Id)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record61Dto.IdTelemetry)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record61Dto.DateTime)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record61Dto.TimeStamp)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record61Dto.Deptbitm)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record61Dto.Deptmeas)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record61Dto.Phl1f1)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record61Dto.Phl1f2)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record61Dto.Phl2f1)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record61Dto.Phl2f2)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record61Dto.Att06h)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record61Dto.Att06l)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record61Dto.Att10h)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record61Dto.Att10l)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record61Dto.Status)) + ; + } + + private static void EnsureRegisteredRecord50() + { + var type = typeof(AsbCloudApp.Data.WITS.Record50Dto); + if (RuntimeTypeModel.Default.IsDefined(type)) + return; + var i = 1; + RuntimeTypeModel.Default.Add(type, false) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record50Dto.Id)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record50Dto.IdTelemetry)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record50Dto.DateTime)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record50Dto.TimeStamp)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record50Dto.Deptbitm)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record50Dto.DeptmeasMcrstat)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record50Dto.Mcrstat)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record50Dto.DeptmeasSlvlMc)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record50Dto.SlvlMc)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record50Dto.DeptmeasGdpMc)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record50Dto.GdpMc)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record50Dto.DeptmeasRa33f2Mc)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record50Dto.Ra33f2Mc)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record50Dto.DeptmeasRp33f2Mc)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record50Dto.Rp33f2Mc)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record50Dto.DeptmeasRa33f4Mc)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record50Dto.Ra33f4Mc)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record50Dto.DeptmeasRp33f4Mc)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record50Dto.Rp33f4Mc)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record50Dto.DeptmeasRa33Mc)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record50Dto.Ra33Mc)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record50Dto.DeptmeasRp33Mc)) + .Add(i++, nameof(AsbCloudApp.Data.WITS.Record50Dto.Rp33Mc)) + ; + } + + static void EnsureRegisteredDataSpin() + { + var type = typeof(TelemetryDataSpinDto); + if (RuntimeTypeModel.Default.IsDefined(type)) + return; + RuntimeTypeModel.Default.Add(type, false) + .Add(1, nameof(TelemetryDataSpinDto.IdTelemetry)) + .Add(2, nameof(TelemetryDataSpinDto.DateTime)) + .Add(35, nameof(TelemetryDataSpinDto.Mode)) + .Add(43, nameof(TelemetryDataSpinDto.RevolsRightLimit)) + .Add(44, nameof(TelemetryDataSpinDto.RevolsLeftLimit)) + .Add(45, nameof(TelemetryDataSpinDto.SpeedRightSp)) + .Add(46, nameof(TelemetryDataSpinDto.SpeedLeftSp)) + .Add(47, nameof(TelemetryDataSpinDto.RevolsRightTotal)) + .Add(48, nameof(TelemetryDataSpinDto.RevolsLeftTotal)) + .Add(57, nameof(TelemetryDataSpinDto.PositionZero)) + .Add(58, nameof(TelemetryDataSpinDto.PositionRight)) + .Add(64, nameof(TelemetryDataSpinDto.State)); + } + + static void EnsureRegisteredDataSaub() + { + var type = typeof(TelemetryDataSaubDto); + if (RuntimeTypeModel.Default.IsDefined(type)) + return; + RuntimeTypeModel.Default.Add(type, false) + .Add(1, nameof(TelemetryDataSaubDto.IdTelemetry)) + .Add(2, nameof(TelemetryDataSaubDto.DateTime)) + .Add(3, nameof(TelemetryDataSaubDto.Mode)) + .Add(4, nameof(TelemetryDataSaubDto.User)) + .Add(5, nameof(TelemetryDataSaubDto.WellDepth)) + .Add(6, nameof(TelemetryDataSaubDto.BitDepth)) + .Add(7, nameof(TelemetryDataSaubDto.BlockPosition)) + .Add(8, nameof(TelemetryDataSaubDto.BlockPositionMin)) + .Add(9, nameof(TelemetryDataSaubDto.BlockPositionMax)) + .Add(10, nameof(TelemetryDataSaubDto.BlockSpeed)) + .Add(11, nameof(TelemetryDataSaubDto.BlockSpeedSp)) + .Add(12, nameof(TelemetryDataSaubDto.BlockSpeedSpRotor)) + .Add(13, nameof(TelemetryDataSaubDto.BlockSpeedSpSlide)) + .Add(14, nameof(TelemetryDataSaubDto.BlockSpeedSpDevelop)) + .Add(15, nameof(TelemetryDataSaubDto.Pressure)) + .Add(16, nameof(TelemetryDataSaubDto.PressureIdle)) + .Add(17, nameof(TelemetryDataSaubDto.PressureSp)) + .Add(18, nameof(TelemetryDataSaubDto.PressureSpRotor)) + .Add(19, nameof(TelemetryDataSaubDto.PressureSpSlide)) + .Add(20, nameof(TelemetryDataSaubDto.PressureSpDevelop)) + .Add(21, nameof(TelemetryDataSaubDto.PressureDeltaLimitMax)) + .Add(22, nameof(TelemetryDataSaubDto.AxialLoad)) + .Add(23, nameof(TelemetryDataSaubDto.AxialLoadSp)) + .Add(24, nameof(TelemetryDataSaubDto.AxialLoadLimitMax)) + .Add(25, nameof(TelemetryDataSaubDto.HookWeight)) + .Add(26, nameof(TelemetryDataSaubDto.HookWeightIdle)) + .Add(27, nameof(TelemetryDataSaubDto.HookWeightLimitMin)) + .Add(28, nameof(TelemetryDataSaubDto.HookWeightLimitMax)) + .Add(29, nameof(TelemetryDataSaubDto.RotorTorque)) + .Add(30, nameof(TelemetryDataSaubDto.RotorTorqueIdle)) + .Add(31, nameof(TelemetryDataSaubDto.RotorTorqueSp)) + .Add(32, nameof(TelemetryDataSaubDto.RotorTorqueLimitMax)) + .Add(33, nameof(TelemetryDataSaubDto.RotorSpeed)) + .Add(34, nameof(TelemetryDataSaubDto.Flow)) + .Add(35, nameof(TelemetryDataSaubDto.FlowIdle)) + .Add(36, nameof(TelemetryDataSaubDto.FlowDeltaLimitMax)) + .Add(37, nameof(TelemetryDataSaubDto.IdFeedRegulator)) + .Add(38, nameof(TelemetryDataSaubDto.MseState)) + .Add(39, nameof(TelemetryDataSaubDto.Mse)) + .Add(40, nameof(TelemetryDataSaubDto.Pump0Flow)) + .Add(41, nameof(TelemetryDataSaubDto.Pump1Flow)) + .Add(42, nameof(TelemetryDataSaubDto.Pump2Flow)); + } } diff --git a/AsbCloudWebApi/Startup.cs b/AsbCloudWebApi/Startup.cs index c39dc43e..b4830fb9 100644 --- a/AsbCloudWebApi/Startup.cs +++ b/AsbCloudWebApi/Startup.cs @@ -38,7 +38,7 @@ namespace AsbCloudWebApi services.AddControllers(options => options.UseDateOnlyTimeOnlyStringConverters()); - ProtobufModel.EnshureRegistered(); + ProtobufModel.EnsureRegistered(); services.AddSwagger(); diff --git a/SignalRTestClient/SignalRTestClient.csproj b/SignalRTestClient/SignalRTestClient.csproj index 5af7effc..f6afeb3c 100644 --- a/SignalRTestClient/SignalRTestClient.csproj +++ b/SignalRTestClient/SignalRTestClient.csproj @@ -8,7 +8,7 @@ - +