diff --git a/AsbCloudApp/Data/WellCaseDto.cs b/AsbCloudApp/Data/WellCaseDto.cs index 046cd0d5..867d4426 100644 --- a/AsbCloudApp/Data/WellCaseDto.cs +++ b/AsbCloudApp/Data/WellCaseDto.cs @@ -23,5 +23,5 @@ namespace AsbCloudApp.Data /// public IEnumerable WellFinalDocuments { get; set; } = Enumerable.Empty(); } -#nullable disable + } diff --git a/AsbCloudApp/Data/WellGroupOpertionDto.cs b/AsbCloudApp/Data/WellGroupOpertionDto.cs index 582d03ec..0839045c 100644 --- a/AsbCloudApp/Data/WellGroupOpertionDto.cs +++ b/AsbCloudApp/Data/WellGroupOpertionDto.cs @@ -58,4 +58,3 @@ public class WellGroupOpertionDto /// public IEnumerable? Items { get; set; } } -#nullable disable \ No newline at end of file diff --git a/AsbCloudApp/Data/WellOperationPlanDto.cs b/AsbCloudApp/Data/WellOperationPlanDto.cs index 7041b493..be469948 100644 --- a/AsbCloudApp/Data/WellOperationPlanDto.cs +++ b/AsbCloudApp/Data/WellOperationPlanDto.cs @@ -22,5 +22,5 @@ namespace AsbCloudApp.Data public DateTime? DateLastAssosiatedPlanOperation { get; set; } } -#nullable disable + } diff --git a/AsbCloudWebApi/Controllers/CrudController.cs b/AsbCloudWebApi/Controllers/CrudController.cs index 4d1442aa..42d5c405 100644 --- a/AsbCloudWebApi/Controllers/CrudController.cs +++ b/AsbCloudWebApi/Controllers/CrudController.cs @@ -11,7 +11,7 @@ using System.Threading.Tasks; // For more information on enabling Web API for empty projects, visit https://go.microsoft.com/fwlink/?LinkID=397860 namespace AsbCloudWebApi.Controllers { -#nullable enable + /// /// CRUD контроллер для админки. /// @@ -140,5 +140,5 @@ namespace AsbCloudWebApi.Controllers return Ok(result); } } -#nullable disable + } diff --git a/AsbCloudWebApi/Controllers/CrudWellRelatedController.cs b/AsbCloudWebApi/Controllers/CrudWellRelatedController.cs index cf1110b8..4bf0a800 100644 --- a/AsbCloudWebApi/Controllers/CrudWellRelatedController.cs +++ b/AsbCloudWebApi/Controllers/CrudWellRelatedController.cs @@ -10,7 +10,7 @@ using System.Threading.Tasks; // For more information on enabling Web API for empty projects, visit https://go.microsoft.com/fwlink/?LinkID=397860 namespace AsbCloudWebApi.Controllers { -#nullable enable + /// /// CRUD контроллер dto связных со скважиной для админки. /// @@ -161,5 +161,5 @@ namespace AsbCloudWebApi.Controllers return false; } } -#nullable disable + } diff --git a/AsbCloudWebApi/Controllers/DailyReportController.cs b/AsbCloudWebApi/Controllers/DailyReportController.cs index a7ef385b..5abc6659 100644 --- a/AsbCloudWebApi/Controllers/DailyReportController.cs +++ b/AsbCloudWebApi/Controllers/DailyReportController.cs @@ -13,7 +13,7 @@ using System.Threading.Tasks; namespace AsbCloudWebApi.Controllers { -#nullable enable + /// /// Суточный рапорт /// @@ -194,5 +194,5 @@ namespace AsbCloudWebApi.Controllers return false; } } -#nullable disable + } diff --git a/AsbCloudWebApi/Controllers/FileController.cs b/AsbCloudWebApi/Controllers/FileController.cs index 53b2fc52..0bb69891 100644 --- a/AsbCloudWebApi/Controllers/FileController.cs +++ b/AsbCloudWebApi/Controllers/FileController.cs @@ -13,7 +13,7 @@ using AsbCloudApp.Repositories; namespace AsbCloudWebApi.Controllers { -#nullable enable + /// /// Хранение файлов /// @@ -244,5 +244,5 @@ namespace AsbCloudWebApi.Controllers } } } -#nullable disable + } diff --git a/AsbCloudWebApi/Controllers/OperationStatController.cs b/AsbCloudWebApi/Controllers/OperationStatController.cs index d32ea4b7..a10dcd93 100644 --- a/AsbCloudWebApi/Controllers/OperationStatController.cs +++ b/AsbCloudWebApi/Controllers/OperationStatController.cs @@ -9,7 +9,7 @@ using System.Threading.Tasks; namespace AsbCloudWebApi.Controllers { -#nullable enable + /// /// Статистика по операциям (заведенным вручную) на скважине /// @@ -166,5 +166,5 @@ namespace AsbCloudWebApi.Controllers idWell, token).ConfigureAwait(false); } } -#nullable disable + } diff --git a/AsbCloudWebApi/Controllers/PlannedTrajectoryController.cs b/AsbCloudWebApi/Controllers/PlannedTrajectoryController.cs index 5d019e18..96361908 100644 --- a/AsbCloudWebApi/Controllers/PlannedTrajectoryController.cs +++ b/AsbCloudWebApi/Controllers/PlannedTrajectoryController.cs @@ -11,7 +11,7 @@ using System.Threading.Tasks; namespace AsbCloudWebApi.Controllers { -#nullable enable + /// /// Плановая траектория (загрузка и хранение) /// @@ -249,5 +249,5 @@ namespace AsbCloudWebApi.Controllers idWell, token).ConfigureAwait(false); } } -#nullable disable + } diff --git a/AsbCloudWebApi/Controllers/ProcessMapController.cs b/AsbCloudWebApi/Controllers/ProcessMapController.cs index e2a87c71..1f6ce9a0 100644 --- a/AsbCloudWebApi/Controllers/ProcessMapController.cs +++ b/AsbCloudWebApi/Controllers/ProcessMapController.cs @@ -11,7 +11,7 @@ using System.Threading.Tasks; namespace AsbCloudWebApi.Controllers { -#nullable enable + /// /// РТК /// @@ -152,5 +152,5 @@ namespace AsbCloudWebApi.Controllers return await base.UpdateAsync(value, token); } } -#nullable disable + } \ No newline at end of file diff --git a/AsbCloudWebApi/Controllers/RequestTrackerController.cs b/AsbCloudWebApi/Controllers/RequestTrackerController.cs index a645b257..11facc97 100644 --- a/AsbCloudWebApi/Controllers/RequestTrackerController.cs +++ b/AsbCloudWebApi/Controllers/RequestTrackerController.cs @@ -6,7 +6,7 @@ using System.Collections.Generic; namespace AsbCloudWebApi.Controllers { -#nullable enable + /// /// Мониторинг запросов, ошибок, пользователей /// @@ -88,5 +88,5 @@ namespace AsbCloudWebApi.Controllers return Ok(result); } } -#nullable disable + } diff --git a/AsbCloudWebApi/Controllers/SAUB/GtrWitsController.cs b/AsbCloudWebApi/Controllers/SAUB/GtrWitsController.cs index 791c73bf..981ff1e7 100644 --- a/AsbCloudWebApi/Controllers/SAUB/GtrWitsController.cs +++ b/AsbCloudWebApi/Controllers/SAUB/GtrWitsController.cs @@ -12,7 +12,7 @@ using System.Threading.Tasks; namespace AsbCloudWebApi.Controllers.SAUB { -#nullable enable + [Route("api/[controller]")] [ApiController] public class GtrWitsController : ControllerBase @@ -118,5 +118,5 @@ namespace AsbCloudWebApi.Controllers.SAUB return Ok(); } } -#nullable disable + } diff --git a/AsbCloudWebApi/Controllers/SAUB/TelemetryWirelineRunOutController.cs b/AsbCloudWebApi/Controllers/SAUB/TelemetryWirelineRunOutController.cs index da858a94..a9ee2815 100644 --- a/AsbCloudWebApi/Controllers/SAUB/TelemetryWirelineRunOutController.cs +++ b/AsbCloudWebApi/Controllers/SAUB/TelemetryWirelineRunOutController.cs @@ -11,7 +11,7 @@ using AsbCloudApp.Repositories; namespace AsbCloudWebApi.Controllers.SAUB { -#nullable enable + /// /// Наработка талевого каната /// @@ -112,5 +112,5 @@ namespace AsbCloudWebApi.Controllers.SAUB } } -#nullable disable + } diff --git a/AsbCloudWebApi/Controllers/ScheduleController.cs b/AsbCloudWebApi/Controllers/ScheduleController.cs index 8df91cce..a8c73d30 100644 --- a/AsbCloudWebApi/Controllers/ScheduleController.cs +++ b/AsbCloudWebApi/Controllers/ScheduleController.cs @@ -8,7 +8,7 @@ using System.Threading.Tasks; namespace AsbCloudWebApi.Controllers { -#nullable enable + /// /// Расписание бурильщиков /// diff --git a/AsbCloudWebApi/Controllers/WellCompositeController.cs b/AsbCloudWebApi/Controllers/WellCompositeController.cs index 0bfe40c1..8c155c93 100644 --- a/AsbCloudWebApi/Controllers/WellCompositeController.cs +++ b/AsbCloudWebApi/Controllers/WellCompositeController.cs @@ -10,7 +10,7 @@ using System.Threading.Tasks; namespace AsbCloudWebApi.Controllers { -#nullable enable + /// /// Композитная скважина /// @@ -90,5 +90,5 @@ namespace AsbCloudWebApi.Controllers idWell, token).ConfigureAwait(false); } } -#nullable disable + } diff --git a/AsbCloudWebApi/Controllers/WellFinalDocumentsController.cs b/AsbCloudWebApi/Controllers/WellFinalDocumentsController.cs index b24898dd..53e1d61a 100644 --- a/AsbCloudWebApi/Controllers/WellFinalDocumentsController.cs +++ b/AsbCloudWebApi/Controllers/WellFinalDocumentsController.cs @@ -11,7 +11,7 @@ using AsbCloudApp.Repositories; namespace AsbCloudWebApi.Controllers { -#nullable enable + /// /// Дело скважины /// @@ -175,5 +175,5 @@ namespace AsbCloudWebApi.Controllers idWell, token).ConfigureAwait(false); } } -#nullable disable + } diff --git a/AsbCloudWebApi/Controllers/WellOperationController.cs b/AsbCloudWebApi/Controllers/WellOperationController.cs index 5492ea24..0a6183df 100644 --- a/AsbCloudWebApi/Controllers/WellOperationController.cs +++ b/AsbCloudWebApi/Controllers/WellOperationController.cs @@ -14,7 +14,7 @@ using System.Threading.Tasks; namespace AsbCloudWebApi.Controllers { -#nullable enable + /// /// Буровые операции (вводимые вручную) /// @@ -393,5 +393,5 @@ namespace AsbCloudWebApi.Controllers idWell, token).ConfigureAwait(false); } } -#nullable disable + } diff --git a/AsbCloudWebApi/Converters/DateOnlyJsonConverter.cs b/AsbCloudWebApi/Converters/DateOnlyJsonConverter.cs index 7883e7c0..81d0d0ff 100644 --- a/AsbCloudWebApi/Converters/DateOnlyJsonConverter.cs +++ b/AsbCloudWebApi/Converters/DateOnlyJsonConverter.cs @@ -4,7 +4,7 @@ using System.Text.Json.Serialization; namespace AsbCloudWebApi.Converters { -#nullable enable + public class DateOnlyJsonConverter : JsonConverter { public override DateOnly Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) @@ -18,5 +18,5 @@ namespace AsbCloudWebApi.Converters writer.WriteStringValue(isoDate); } } -#nullable disable + } diff --git a/AsbCloudWebApi/Converters/DateOnlyTypeConverter.cs b/AsbCloudWebApi/Converters/DateOnlyTypeConverter.cs index df826075..581a070d 100644 --- a/AsbCloudWebApi/Converters/DateOnlyTypeConverter.cs +++ b/AsbCloudWebApi/Converters/DateOnlyTypeConverter.cs @@ -6,7 +6,7 @@ using System.Text.Json.Serialization; namespace AsbCloudWebApi.Converters { -#nullable enable + public class DateOnlyTypeConverter : TypeConverter { public override bool CanConvertFrom(ITypeDescriptorContext? context, Type sourceType) @@ -44,5 +44,5 @@ namespace AsbCloudWebApi.Converters return base.ConvertTo(context, culture, value, destinationType); } } -#nullable disable + } diff --git a/AsbCloudWebApi/Converters/TimeOnlyTypeConverter.cs b/AsbCloudWebApi/Converters/TimeOnlyTypeConverter.cs index ceb40b04..02a81ae0 100644 --- a/AsbCloudWebApi/Converters/TimeOnlyTypeConverter.cs +++ b/AsbCloudWebApi/Converters/TimeOnlyTypeConverter.cs @@ -4,7 +4,7 @@ using System.Globalization; namespace AsbCloudWebApi.Converters { -#nullable enable + public class TimeOnlyTypeConverter : TypeConverter { public override bool CanConvertFrom(ITypeDescriptorContext? context, Type sourceType) @@ -42,5 +42,5 @@ namespace AsbCloudWebApi.Converters return base.ConvertTo(context, culture, value, destinationType); } } -#nullable disable + } diff --git a/AsbCloudWebApi/Middlewares/PermissionsMiddlware.cs b/AsbCloudWebApi/Middlewares/PermissionsMiddlware.cs index a6b2c07a..1c352b90 100644 --- a/AsbCloudWebApi/Middlewares/PermissionsMiddlware.cs +++ b/AsbCloudWebApi/Middlewares/PermissionsMiddlware.cs @@ -10,7 +10,7 @@ using System.Threading.Tasks; namespace AsbCloudWebApi.Middlewares { -#nullable enable + public class PermissionsMiddlware { private readonly RequestDelegate next; @@ -80,5 +80,5 @@ namespace AsbCloudWebApi.Middlewares await context.ForbidAsync(); } } -#nullable disable + } diff --git a/AsbCloudWebApi/Middlewares/RequerstTrackerMiddleware.cs b/AsbCloudWebApi/Middlewares/RequerstTrackerMiddleware.cs index 7b337f46..db4a2e33 100644 --- a/AsbCloudWebApi/Middlewares/RequerstTrackerMiddleware.cs +++ b/AsbCloudWebApi/Middlewares/RequerstTrackerMiddleware.cs @@ -4,7 +4,7 @@ using System.Threading.Tasks; namespace AsbCloudWebApi.Middlewares { -#nullable enable + public class RequerstTrackerMiddleware { private readonly RequestDelegate next; @@ -49,5 +49,5 @@ namespace AsbCloudWebApi.Middlewares } } } -#nullable disable + } diff --git a/AsbCloudWebApi/Middlewares/UserConnectionsLimitMiddlware.cs b/AsbCloudWebApi/Middlewares/UserConnectionsLimitMiddlware.cs index c9f45dea..ba24a0c9 100644 --- a/AsbCloudWebApi/Middlewares/UserConnectionsLimitMiddlware.cs +++ b/AsbCloudWebApi/Middlewares/UserConnectionsLimitMiddlware.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; namespace AsbCloudWebApi.Middlewares { -#nullable enable + /// /// This is not real middleware it`s part of PermissionsMiddlware. /// DO NOT register it in setup.cs as middleware. @@ -69,5 +69,5 @@ namespace AsbCloudWebApi.Middlewares } } } -#nullable disable + }