diff --git a/Bus/Bus/BusNotFoundException.cs b/Bus/Bus/BusNotFoundException.cs index dd467fb..ccfdb90 100644 --- a/Bus/Bus/BusNotFoundException.cs +++ b/Bus/Bus/BusNotFoundException.cs @@ -10,13 +10,9 @@ namespace Bus internal class BusNotFoundException : ApplicationException { public BusNotFoundException(int i) : base($"Не найден объект по позиции {i}") { } - public BusNotFoundException() : base() { } - public BusNotFoundException(string message) : base(message) { } - public BusNotFoundException(string message, Exception exception) : base(message, exception) { } - protected BusNotFoundException(SerializationInfo info, StreamingContext contex) : base(info, contex) { } } } diff --git a/Bus/Bus/SetDoubleDeckerBusGeneric.cs b/Bus/Bus/SetDoubleDeckerBusGeneric.cs index e34e350..cae1e16 100644 --- a/Bus/Bus/SetDoubleDeckerBusGeneric.cs +++ b/Bus/Bus/SetDoubleDeckerBusGeneric.cs @@ -26,11 +26,6 @@ namespace Bus return Insert(bus, 0); } - private bool isCorrectPosition(int position) - { - return 0 <= position && position < _maxCount; - } - public int Insert(T bus, int position) { if (position > _maxCount && position < 0) diff --git a/Bus/Bus/StorageOverflowException.cs b/Bus/Bus/StorageOverflowException.cs index f111655..139b061 100644 --- a/Bus/Bus/StorageOverflowException.cs +++ b/Bus/Bus/StorageOverflowException.cs @@ -10,13 +10,9 @@ namespace Bus internal class StorageOverflowException : ApplicationException { public StorageOverflowException(int count) : base($"В наборе превышено допустимое количество: {count}") { } - public StorageOverflowException() : base() { } - public StorageOverflowException(string message) : base(message) { } - public StorageOverflowException(string message, Exception exception) : base(message, exception) { } - protected StorageOverflowException(SerializationInfo info, StreamingContext contex) : base(info, contex) { } } } diff --git a/Bus/Bus/appsettings.json b/Bus/Bus/appsettings.json deleted file mode 100644 index 3df4ae5..0000000 --- a/Bus/Bus/appsettings.json +++ /dev/null @@ -1,48 +0,0 @@ -{ - "Serilog": { - "Using": [ "Serilog.Sinks.File" ], - "MinimumLevel": "Information", - "WriteTo": [ - { - "Name": "File", - "Args": { - "path": "Logs/log_.log", - "rollingInterval": "Day", - "outputTemplate": "[{Timestamp:HH:mm:ss.fff}]{Level:u4}: {Message:lj}{NewLine}{Exception}" - } - } - ], - "Enrich": [ "FromLogContext", "WithMachineName", "WithThreadId" ], - "Destructure": [ - { - "Name": "ByTransforming", - "Args": { - "returnType": "Bus.EntityBus", - "transformation": "r => new { BodyColor = r.BodyColor.Name, r.Speed, r.Weight }" - } - }, - { - "Name": "ByTransforming", - "Args": { - "returnType": "Bus.EntitySportBus", - "transformation": "r => new { BodyColor = r.BodyColor.Name, DopColor = r.DopColor.Name, r.Bodykit, r.Wing, r.Sportline, r.Speed, r.Weight }" - } - }, - { - "Name": "ToMaximumDepth", - "Args": { "maximumDestructuringDepth": 4 } - }, - { - "Name": "ToMaximumStringLength", - "Args": { "maximumStringLength": 100 } - }, - { - "Name": "ToMaximumCollectionCount", - "Args": { "maximumCollectionCount": 15 } - } - ], - "Properties": { - "Application": "Bus" - } - } -} \ No newline at end of file diff --git a/Bus/Bus/serilog.json b/Bus/Bus/serilog.json index 4c3cf19..05d3a26 100644 --- a/Bus/Bus/serilog.json +++ b/Bus/Bus/serilog.json @@ -12,9 +12,5 @@ } } ], - "Enrich": [ "FromLogContext", "WithMachineName", "WithThreadId" ], - "Properties": { - "Application": "DoubleDeckerBus" - } } } \ No newline at end of file