From abe501ec6452d7dd0fe3a77c6a00be456d6a11fb Mon Sep 17 00:00:00 2001 From: hubera01 Date: Mon, 2 May 2016 10:42:36 +0200 Subject: [PATCH] Enable SA1128 References #23 --- CodeAnalysis.ruleset | 1 - Lawo.EmberPlusSharp/Ember/EmberConverter.cs | 3 ++- Lawo.EmberPlusSharp/Ember/EmberException.cs | 9 ++++++--- Lawo.EmberPlusSharp/Ember/EmberReader.cs | 3 ++- Lawo.EmberPlusSharp/Ember/EmberWriter.cs | 3 ++- Lawo.EmberPlusSharp/Ember/FieldPath.cs | 3 ++- Lawo.EmberPlusSharp/Model/DynamicFunction.cs | 3 ++- .../Model/InvocationFailedException.cs | 3 ++- Lawo.EmberPlusSharp/Model/Matrix.cs | 3 ++- Lawo.EmberPlusSharp/Model/MetaElement1.cs | 3 ++- Lawo.EmberPlusSharp/Model/ModelException.cs | 9 ++++++--- Lawo.EmberPlusSharp/Model/NodeBase.cs | 3 ++- Lawo.EmberPlusSharp/Model/ParameterBase.cs | 3 ++- Lawo.EmberPlusSharp/Model/Result1.cs | 6 ++++-- Lawo.EmberPlusSharp/Model/Result2.cs | 6 ++++-- Lawo.EmberPlusSharp/Model/Result3.cs | 3 ++- Lawo.EmberPlusSharp/Model/Result4.cs | 4 ++-- Lawo.EmberPlusSharp/Model/Result5.cs | 13 +++++++------ Lawo.EmberPlusSharp/Model/Result6.cs | 15 ++++++++------- Lawo.EmberPlusSharp/Model/StaticFunction.cs | 7 ++++--- Lawo.EmberPlusSharp/S101/DeframingStream.cs | 3 ++- Lawo.EmberPlusSharp/S101/EmberData.cs | 6 ++++-- Lawo.EmberPlusSharp/S101/EventInfo.cs | 3 ++- Lawo.EmberPlusSharp/S101/FramingStream.cs | 3 ++- Lawo.EmberPlusSharp/S101/KeepAliveRequest.cs | 3 ++- Lawo.EmberPlusSharp/S101/KeepAliveResponse.cs | 3 ++- Lawo.EmberPlusSharp/S101/S101Exception.cs | 9 ++++++--- Lawo.EmberPlusSharp/S101/S101Logger.cs | 3 ++- Lawo.EmberPlusSharp/S101/S101Message.cs | 3 ++- Lawo.EmberPlusSharp/S101/S101Reader.cs | 3 ++- Lawo.EmberPlusSharp/S101/S101Writer.cs | 3 ++- Lawo.UnitTesting/TestBase.cs | 6 ++++-- .../DisposableReadOnlyObservableCollection.cs | 3 ++- Lawo/IO/ReadBuffer.cs | 6 ++++-- Lawo/IO/TelnetStream.cs | 8 ++++---- Lawo/IO/WriteBuffer.cs | 6 ++++-- LawoTest/IO/BufferStreamTest.cs | 3 ++- 37 files changed, 111 insertions(+), 66 deletions(-) diff --git a/CodeAnalysis.ruleset b/CodeAnalysis.ruleset index 50c460d5..bb1673a6 100644 --- a/CodeAnalysis.ruleset +++ b/CodeAnalysis.ruleset @@ -242,7 +242,6 @@ - diff --git a/Lawo.EmberPlusSharp/Ember/EmberConverter.cs b/Lawo.EmberPlusSharp/Ember/EmberConverter.cs index e885a52a..c8a50eb9 100644 --- a/Lawo.EmberPlusSharp/Ember/EmberConverter.cs +++ b/Lawo.EmberPlusSharp/Ember/EmberConverter.cs @@ -26,7 +26,8 @@ public sealed class EmberConverter : IEmberConverter //////////////////////////////////////////////////////////////////////////////////////////////////////////////// /// Initializes a new instance of the class. - public EmberConverter() : this(new EmberTypeBag()) + public EmberConverter() + : this(new EmberTypeBag()) { } diff --git a/Lawo.EmberPlusSharp/Ember/EmberException.cs b/Lawo.EmberPlusSharp/Ember/EmberException.cs index fadd69b7..5c5f055a 100644 --- a/Lawo.EmberPlusSharp/Ember/EmberException.cs +++ b/Lawo.EmberPlusSharp/Ember/EmberException.cs @@ -13,17 +13,20 @@ namespace Lawo.EmberPlusSharp.Ember public sealed class EmberException : Exception { /// Initializes a new instance of the class. - public EmberException() : this(null) + public EmberException() + : this(null) { } /// Initializes a new instance of the class. - public EmberException(string message) : this(message, null) + public EmberException(string message) + : this(message, null) { } /// Initializes a new instance of the class. - public EmberException(string message, Exception innerException) : base(message, innerException) + public EmberException(string message, Exception innerException) + : base(message, innerException) { } } diff --git a/Lawo.EmberPlusSharp/Ember/EmberReader.cs b/Lawo.EmberPlusSharp/Ember/EmberReader.cs index a345b7e0..1fe89560 100644 --- a/Lawo.EmberPlusSharp/Ember/EmberReader.cs +++ b/Lawo.EmberPlusSharp/Ember/EmberReader.cs @@ -35,7 +35,8 @@ public sealed class EmberReader : IDisposable /// Initializes a new instance of the class by calling /// EmberReader(, 1024). - public EmberReader(Stream stream) : this(stream, Constants.MemoryStreamBufferSize) + public EmberReader(Stream stream) + : this(stream, Constants.MemoryStreamBufferSize) { } diff --git a/Lawo.EmberPlusSharp/Ember/EmberWriter.cs b/Lawo.EmberPlusSharp/Ember/EmberWriter.cs index 3ea2f4f2..e7c824de 100644 --- a/Lawo.EmberPlusSharp/Ember/EmberWriter.cs +++ b/Lawo.EmberPlusSharp/Ember/EmberWriter.cs @@ -49,7 +49,8 @@ public sealed class EmberWriter : IDisposable /// Initializes a new instance of the class by calling /// EmberWriter(, 1024). - public EmberWriter(Stream stream) : this(stream, Constants.MemoryStreamBufferSize) + public EmberWriter(Stream stream) + : this(stream, Constants.MemoryStreamBufferSize) { } diff --git a/Lawo.EmberPlusSharp/Ember/FieldPath.cs b/Lawo.EmberPlusSharp/Ember/FieldPath.cs index 40a070bf..9a1010e2 100644 --- a/Lawo.EmberPlusSharp/Ember/FieldPath.cs +++ b/Lawo.EmberPlusSharp/Ember/FieldPath.cs @@ -46,7 +46,8 @@ public override string ToString() //////////////////////////////////////////////////////////////////////////////////////////////////////////////// - internal FieldPath(Field field) : this(null, null, field) + internal FieldPath(Field field) + : this(null, null, field) { } diff --git a/Lawo.EmberPlusSharp/Model/DynamicFunction.cs b/Lawo.EmberPlusSharp/Model/DynamicFunction.cs index 6800c80b..ec109306 100644 --- a/Lawo.EmberPlusSharp/Model/DynamicFunction.cs +++ b/Lawo.EmberPlusSharp/Model/DynamicFunction.cs @@ -18,7 +18,8 @@ internal sealed class DynamicFunction : FunctionBase //////////////////////////////////////////////////////////////////////////////////////////////////////////////// - internal DynamicFunction() : base(EmptyDescription, EmptyDescription) + internal DynamicFunction() + : base(EmptyDescription, EmptyDescription) { } diff --git a/Lawo.EmberPlusSharp/Model/InvocationFailedException.cs b/Lawo.EmberPlusSharp/Model/InvocationFailedException.cs index eb6b091d..1a870568 100644 --- a/Lawo.EmberPlusSharp/Model/InvocationFailedException.cs +++ b/Lawo.EmberPlusSharp/Model/InvocationFailedException.cs @@ -26,7 +26,8 @@ public IResult Result //////////////////////////////////////////////////////////////////////////////////////////////////////////////// - internal InvocationFailedException(string message, IResult result) : base(message) + internal InvocationFailedException(string message, IResult result) + : base(message) { this.result = result; } diff --git a/Lawo.EmberPlusSharp/Model/Matrix.cs b/Lawo.EmberPlusSharp/Model/Matrix.cs index a223cb13..ba42478d 100644 --- a/Lawo.EmberPlusSharp/Model/Matrix.cs +++ b/Lawo.EmberPlusSharp/Model/Matrix.cs @@ -217,7 +217,8 @@ internal sealed override void WriteChanges(EmberWriter writer, IInvocationCollec //////////////////////////////////////////////////////////////////////////////////////////////////////////////// - private Matrix() : base(RetrievalState.Complete) + private Matrix() + : base(RetrievalState.Complete) { } } diff --git a/Lawo.EmberPlusSharp/Model/MetaElement1.cs b/Lawo.EmberPlusSharp/Model/MetaElement1.cs index e8500587..e3978ea5 100644 --- a/Lawo.EmberPlusSharp/Model/MetaElement1.cs +++ b/Lawo.EmberPlusSharp/Model/MetaElement1.cs @@ -27,7 +27,8 @@ private sealed class MetaElement : MetaElement //////////////////////////////////////////////////////////////////////////////////////////////////////////// - internal MetaElement(PropertyInfo property) : base(property) + internal MetaElement(PropertyInfo property) + : base(property) { var objParam = Expression.Parameter(typeof(TMostDerived)); this.get = Expression.Lambda>( diff --git a/Lawo.EmberPlusSharp/Model/ModelException.cs b/Lawo.EmberPlusSharp/Model/ModelException.cs index eb8412a4..05a599de 100644 --- a/Lawo.EmberPlusSharp/Model/ModelException.cs +++ b/Lawo.EmberPlusSharp/Model/ModelException.cs @@ -13,17 +13,20 @@ namespace Lawo.EmberPlusSharp.Model public sealed class ModelException : Exception { /// Initializes a new instance of the class. - public ModelException() : this(null) + public ModelException() + : this(null) { } /// Initializes a new instance of the class. - public ModelException(string message) : this(message, null) + public ModelException(string message) + : this(message, null) { } /// Initializes a new instance of the class. - public ModelException(string message, Exception innerException) : base(message, innerException) + public ModelException(string message, Exception innerException) + : base(message, innerException) { } } diff --git a/Lawo.EmberPlusSharp/Model/NodeBase.cs b/Lawo.EmberPlusSharp/Model/NodeBase.cs index 121c3597..26bc076c 100644 --- a/Lawo.EmberPlusSharp/Model/NodeBase.cs +++ b/Lawo.EmberPlusSharp/Model/NodeBase.cs @@ -95,7 +95,8 @@ void IParent.OnPropertyChanged(PropertyChangedEventArgs e) this.OnPropertyChanged(e); } - internal NodeBase() : base(RetrievalState.None) + internal NodeBase() + : base(RetrievalState.None) { } diff --git a/Lawo.EmberPlusSharp/Model/ParameterBase.cs b/Lawo.EmberPlusSharp/Model/ParameterBase.cs index 88ef499e..87100170 100644 --- a/Lawo.EmberPlusSharp/Model/ParameterBase.cs +++ b/Lawo.EmberPlusSharp/Model/ParameterBase.cs @@ -129,7 +129,8 @@ void IStreamedParameter.SetProviderValue(object value) this.SetProviderValue(this.AssertValueType(value)); } - internal ParameterBase() : base(RetrievalState.Complete) + internal ParameterBase() + : base(RetrievalState.Complete) { } diff --git a/Lawo.EmberPlusSharp/Model/Result1.cs b/Lawo.EmberPlusSharp/Model/Result1.cs index bd81543d..670fcdae 100644 --- a/Lawo.EmberPlusSharp/Model/Result1.cs +++ b/Lawo.EmberPlusSharp/Model/Result1.cs @@ -16,7 +16,8 @@ public sealed class Result : ResultBase> //////////////////////////////////////////////////////////////////////////////////////////////////////////////// /// Initializes a new instance of the class. - public Result() : this(new ValueReader()) + public Result() + : this(new ValueReader()) { } @@ -28,7 +29,8 @@ public T1 Item1 //////////////////////////////////////////////////////////////////////////////////////////////////////////////// - private Result(ValueReader item1Reader) : base(item1Reader) + private Result(ValueReader item1Reader) + : base(item1Reader) { this.component1Reader = item1Reader; } diff --git a/Lawo.EmberPlusSharp/Model/Result2.cs b/Lawo.EmberPlusSharp/Model/Result2.cs index 38a9af0e..67d6178b 100644 --- a/Lawo.EmberPlusSharp/Model/Result2.cs +++ b/Lawo.EmberPlusSharp/Model/Result2.cs @@ -18,7 +18,8 @@ public sealed class Result : ResultBase> //////////////////////////////////////////////////////////////////////////////////////////////////////////////// /// Initializes a new instance of the class. - public Result() : this(new ValueReader(), new ValueReader()) + public Result() + : this(new ValueReader(), new ValueReader()) { } @@ -36,7 +37,8 @@ public T2 Item2 //////////////////////////////////////////////////////////////////////////////////////////////////////////////// - private Result(ValueReader item1Reader, ValueReader item2Reader) : base(item1Reader, item2Reader) + private Result(ValueReader item1Reader, ValueReader item2Reader) + : base(item1Reader, item2Reader) { this.component1Reader = item1Reader; this.component2Reader = item2Reader; diff --git a/Lawo.EmberPlusSharp/Model/Result3.cs b/Lawo.EmberPlusSharp/Model/Result3.cs index f1d7d845..01dc2a8d 100644 --- a/Lawo.EmberPlusSharp/Model/Result3.cs +++ b/Lawo.EmberPlusSharp/Model/Result3.cs @@ -23,7 +23,8 @@ public sealed class Result : ResultBase> //////////////////////////////////////////////////////////////////////////////////////////////////////////////// /// Initializes a new instance of the class. - public Result() : this(new ValueReader(), new ValueReader(), new ValueReader()) + public Result() + : this(new ValueReader(), new ValueReader(), new ValueReader()) { } diff --git a/Lawo.EmberPlusSharp/Model/Result4.cs b/Lawo.EmberPlusSharp/Model/Result4.cs index de238576..628e5731 100644 --- a/Lawo.EmberPlusSharp/Model/Result4.cs +++ b/Lawo.EmberPlusSharp/Model/Result4.cs @@ -25,8 +25,8 @@ public sealed class Result : ResultBase> //////////////////////////////////////////////////////////////////////////////////////////////////////////////// /// Initializes a new instance of the class. - public Result() : this( - new ValueReader(), new ValueReader(), new ValueReader(), new ValueReader()) + public Result() + : this(new ValueReader(), new ValueReader(), new ValueReader(), new ValueReader()) { } diff --git a/Lawo.EmberPlusSharp/Model/Result5.cs b/Lawo.EmberPlusSharp/Model/Result5.cs index 2a2c92e7..c9523fc1 100644 --- a/Lawo.EmberPlusSharp/Model/Result5.cs +++ b/Lawo.EmberPlusSharp/Model/Result5.cs @@ -27,12 +27,13 @@ public sealed class Result : ResultBaseInitializes a new instance of the class. - public Result() : this( - new ValueReader(), - new ValueReader(), - new ValueReader(), - new ValueReader(), - new ValueReader()) + public Result() + : this( + new ValueReader(), + new ValueReader(), + new ValueReader(), + new ValueReader(), + new ValueReader()) { } diff --git a/Lawo.EmberPlusSharp/Model/Result6.cs b/Lawo.EmberPlusSharp/Model/Result6.cs index 321c9b1b..f409b98e 100644 --- a/Lawo.EmberPlusSharp/Model/Result6.cs +++ b/Lawo.EmberPlusSharp/Model/Result6.cs @@ -29,13 +29,14 @@ public sealed class Result : ResultBaseInitializes a new instance of the class. - public Result() : this( - new ValueReader(), - new ValueReader(), - new ValueReader(), - new ValueReader(), - new ValueReader(), - new ValueReader()) + public Result() + : this( + new ValueReader(), + new ValueReader(), + new ValueReader(), + new ValueReader(), + new ValueReader(), + new ValueReader()) { } diff --git a/Lawo.EmberPlusSharp/Model/StaticFunction.cs b/Lawo.EmberPlusSharp/Model/StaticFunction.cs index 39713400..33e228b2 100644 --- a/Lawo.EmberPlusSharp/Model/StaticFunction.cs +++ b/Lawo.EmberPlusSharp/Model/StaticFunction.cs @@ -28,9 +28,10 @@ public abstract class StaticFunction : FunctionBase //////////////////////////////////////////////////////////////////////////////////////////////////////////////// - internal StaticFunction() : base( - (KeyValuePair[])ArgumentsTemplate.Clone(), - (KeyValuePair[])ResultTemplate.Clone()) + internal StaticFunction() + : base( + (KeyValuePair[])ArgumentsTemplate.Clone(), + (KeyValuePair[])ResultTemplate.Clone()) { } diff --git a/Lawo.EmberPlusSharp/S101/DeframingStream.cs b/Lawo.EmberPlusSharp/S101/DeframingStream.cs index 48421544..e9eeebbe 100644 --- a/Lawo.EmberPlusSharp/S101/DeframingStream.cs +++ b/Lawo.EmberPlusSharp/S101/DeframingStream.cs @@ -57,7 +57,8 @@ public sealed override async Task ReadAsync( //////////////////////////////////////////////////////////////////////////////////////////////////////////////// /// Initializes a new instance of the class. - internal DeframingStream(ReadBuffer readBuffer, Action outOfFrameByteReceived) : base(readBuffer, null) + internal DeframingStream(ReadBuffer readBuffer, Action outOfFrameByteReceived) + : base(readBuffer, null) { this.outOfFrameByteReceived = outOfFrameByteReceived; } diff --git a/Lawo.EmberPlusSharp/S101/EmberData.cs b/Lawo.EmberPlusSharp/S101/EmberData.cs index 2151d595..085737a1 100644 --- a/Lawo.EmberPlusSharp/S101/EmberData.cs +++ b/Lawo.EmberPlusSharp/S101/EmberData.cs @@ -28,7 +28,8 @@ public sealed class EmberData : S101Command /// Initializes a new instance of the class. [SuppressMessage("Microsoft.Naming", "CA1720:IdentifiersShouldNotContainTypeNames", Justification = "Official EmBER name.")] - public EmberData(byte dtd, params byte[] applicationBytes) : this() + public EmberData(byte dtd, params byte[] applicationBytes) + : this() { this.dtd = dtd; this.applicationBytes = applicationBytes; @@ -56,7 +57,8 @@ public sealed override string ToString() //////////////////////////////////////////////////////////////////////////////////////////////////////////////// - internal EmberData() : base(CommandType.EmberData) + internal EmberData() + : base(CommandType.EmberData) { } diff --git a/Lawo.EmberPlusSharp/S101/EventInfo.cs b/Lawo.EmberPlusSharp/S101/EventInfo.cs index 4163148c..2f6a5311 100644 --- a/Lawo.EmberPlusSharp/S101/EventInfo.cs +++ b/Lawo.EmberPlusSharp/S101/EventInfo.cs @@ -22,7 +22,8 @@ public struct EventInfo //////////////////////////////////////////////////////////////////////////////////////////////////////////////// - internal EventInfo(DateTime? timeUtc) : this(timeUtc, null) + internal EventInfo(DateTime? timeUtc) + : this(timeUtc, null) { } diff --git a/Lawo.EmberPlusSharp/S101/FramingStream.cs b/Lawo.EmberPlusSharp/S101/FramingStream.cs index 9428eff3..6d9232c5 100644 --- a/Lawo.EmberPlusSharp/S101/FramingStream.cs +++ b/Lawo.EmberPlusSharp/S101/FramingStream.cs @@ -74,7 +74,8 @@ internal static async Task CreateAsync( //////////////////////////////////////////////////////////////////////////////////////////////////////////////// - private FramingStream(WriteBuffer writeBuffer) : base(null, writeBuffer) + private FramingStream(WriteBuffer writeBuffer) + : base(null, writeBuffer) { writeBuffer[writeBuffer.Count++] = Frame.BeginOfFrame; } diff --git a/Lawo.EmberPlusSharp/S101/KeepAliveRequest.cs b/Lawo.EmberPlusSharp/S101/KeepAliveRequest.cs index b9dad85d..348496c5 100644 --- a/Lawo.EmberPlusSharp/S101/KeepAliveRequest.cs +++ b/Lawo.EmberPlusSharp/S101/KeepAliveRequest.cs @@ -13,7 +13,8 @@ namespace Lawo.EmberPlusSharp.S101 public sealed class KeepAliveRequest : S101Command { /// Initializes a new instance of the class. - public KeepAliveRequest() : base(CommandType.KeepAliveRequest) + public KeepAliveRequest() + : base(CommandType.KeepAliveRequest) { } } diff --git a/Lawo.EmberPlusSharp/S101/KeepAliveResponse.cs b/Lawo.EmberPlusSharp/S101/KeepAliveResponse.cs index 1519888f..9f949019 100644 --- a/Lawo.EmberPlusSharp/S101/KeepAliveResponse.cs +++ b/Lawo.EmberPlusSharp/S101/KeepAliveResponse.cs @@ -13,7 +13,8 @@ namespace Lawo.EmberPlusSharp.S101 public sealed class KeepAliveResponse : S101Command { /// Initializes a new instance of the class. - public KeepAliveResponse() : base(CommandType.KeepAliveResponse) + public KeepAliveResponse() + : base(CommandType.KeepAliveResponse) { } } diff --git a/Lawo.EmberPlusSharp/S101/S101Exception.cs b/Lawo.EmberPlusSharp/S101/S101Exception.cs index 78f68291..52fb143b 100644 --- a/Lawo.EmberPlusSharp/S101/S101Exception.cs +++ b/Lawo.EmberPlusSharp/S101/S101Exception.cs @@ -13,17 +13,20 @@ namespace Lawo.EmberPlusSharp.S101 public sealed class S101Exception : Exception { /// Initializes a new instance of the class. - public S101Exception() : this(null) + public S101Exception() + : this(null) { } /// Initializes a new instance of the class. - public S101Exception(string message) : this(message, null) + public S101Exception(string message) + : this(message, null) { } /// Initializes a new instance of the class. - public S101Exception(string message, Exception innerException) : base(message, innerException) + public S101Exception(string message, Exception innerException) + : base(message, innerException) { } } diff --git a/Lawo.EmberPlusSharp/S101/S101Logger.cs b/Lawo.EmberPlusSharp/S101/S101Logger.cs index 0ec34c86..65caab12 100644 --- a/Lawo.EmberPlusSharp/S101/S101Logger.cs +++ b/Lawo.EmberPlusSharp/S101/S101Logger.cs @@ -54,7 +54,8 @@ public S101Logger(EmberTypeBag types, TextWriter logWriter, XmlWriterSettings se /// The to write log messages to. /// and/or /// equal null. - public S101Logger(EmberTypeBag types, XmlWriter xmlLogWriter) : this(new EmberConverter(types), xmlLogWriter) + public S101Logger(EmberTypeBag types, XmlWriter xmlLogWriter) + : this(new EmberConverter(types), xmlLogWriter) { } diff --git a/Lawo.EmberPlusSharp/S101/S101Message.cs b/Lawo.EmberPlusSharp/S101/S101Message.cs index 94a0a439..b5aaa569 100644 --- a/Lawo.EmberPlusSharp/S101/S101Message.cs +++ b/Lawo.EmberPlusSharp/S101/S101Message.cs @@ -27,7 +27,8 @@ public sealed class S101Message /// Initializes a new instance of the class. /// equals null. - public S101Message(byte slot, S101Command command) : this(slot, S101.MessageType.Ember, command) + public S101Message(byte slot, S101Command command) + : this(slot, S101.MessageType.Ember, command) { if (command == null) { diff --git a/Lawo.EmberPlusSharp/S101/S101Reader.cs b/Lawo.EmberPlusSharp/S101/S101Reader.cs index 4a8c7641..2a3ccefb 100644 --- a/Lawo.EmberPlusSharp/S101/S101Reader.cs +++ b/Lawo.EmberPlusSharp/S101/S101Reader.cs @@ -32,7 +32,8 @@ public sealed class S101Reader /// S101Reader(, 8192). /// [CLSCompliant(false)] - public S101Reader(ReadAsyncCallback readAsync) : this(readAsync, Constants.PhysicalStreamBufferSize) + public S101Reader(ReadAsyncCallback readAsync) + : this(readAsync, Constants.PhysicalStreamBufferSize) { } diff --git a/Lawo.EmberPlusSharp/S101/S101Writer.cs b/Lawo.EmberPlusSharp/S101/S101Writer.cs index 7db11bf0..ff7905cd 100644 --- a/Lawo.EmberPlusSharp/S101/S101Writer.cs +++ b/Lawo.EmberPlusSharp/S101/S101Writer.cs @@ -31,7 +31,8 @@ public sealed class S101Writer /// Initializes a new instance of the class by calling /// S101Writer(, 8192). [CLSCompliant(false)] - public S101Writer(WriteAsyncCallback writeAsync) : this(writeAsync, Constants.PhysicalStreamBufferSize) + public S101Writer(WriteAsyncCallback writeAsync) + : this(writeAsync, Constants.PhysicalStreamBufferSize) { } diff --git a/Lawo.UnitTesting/TestBase.cs b/Lawo.UnitTesting/TestBase.cs index 614012ac..41bfe49c 100644 --- a/Lawo.UnitTesting/TestBase.cs +++ b/Lawo.UnitTesting/TestBase.cs @@ -209,7 +209,8 @@ public static async Task WaitForChangeAsync(IPrope /// Initializes a new instance of the class by calling /// TestBase((int)DateTime.Now.TimeOfDay.TotalMilliseconds). /// Deriving test classes should normally call this constructor. - protected TestBase() : this((int)DateTime.Now.TimeOfDay.TotalMilliseconds) + protected TestBase() + : this((int)DateTime.Now.TimeOfDay.TotalMilliseconds) { } @@ -372,7 +373,8 @@ internal UnexpectedSuccessException() [SuppressMessage("Microsoft.Design", "CA1064:ExceptionsShouldBePublic", Justification = "This one is intentionally private.")] private sealed class UnexpectedMessageException : Exception { - internal UnexpectedMessageException(string message, Exception innerException) : base(message, innerException) + internal UnexpectedMessageException(string message, Exception innerException) + : base(message, innerException) { } } diff --git a/Lawo/ComponentModel/DisposableReadOnlyObservableCollection.cs b/Lawo/ComponentModel/DisposableReadOnlyObservableCollection.cs index 7efd1cc6..bb0845eb 100644 --- a/Lawo/ComponentModel/DisposableReadOnlyObservableCollection.cs +++ b/Lawo/ComponentModel/DisposableReadOnlyObservableCollection.cs @@ -28,7 +28,8 @@ public void Dispose() //////////////////////////////////////////////////////////////////////////////////////////////////////////////// - internal DisposableReadOnlyObservableCollection(SubscribedObservableCollection list) : base(list) + internal DisposableReadOnlyObservableCollection(SubscribedObservableCollection list) + : base(list) { this.dispose = list.Dispose; } diff --git a/Lawo/IO/ReadBuffer.cs b/Lawo/IO/ReadBuffer.cs index 9b833edf..785b9ce4 100644 --- a/Lawo/IO/ReadBuffer.cs +++ b/Lawo/IO/ReadBuffer.cs @@ -78,7 +78,8 @@ public sealed class ReadBuffer : Buffer /// The size of the buffer in bytes. /// equals null. /// is 0 or negative. - public ReadBuffer(ReadCallback read, int bufferSize) : base(bufferSize) + public ReadBuffer(ReadCallback read, int bufferSize) + : base(bufferSize) { if (read == null) { @@ -95,7 +96,8 @@ public ReadBuffer(ReadCallback read, int bufferSize) : base(bufferSize) /// equals null. /// is 0 or negative. [CLSCompliant(false)] - public ReadBuffer(ReadAsyncCallback readAsync, int bufferSize) : base(bufferSize) + public ReadBuffer(ReadAsyncCallback readAsync, int bufferSize) + : base(bufferSize) { if (readAsync == null) { diff --git a/Lawo/IO/TelnetStream.cs b/Lawo/IO/TelnetStream.cs index 89900d20..0c471992 100644 --- a/Lawo/IO/TelnetStream.cs +++ b/Lawo/IO/TelnetStream.cs @@ -35,10 +35,10 @@ public sealed class TelnetStream : BufferStream /// Initializes a new instance of the class. /// , and/or /// equal null. - public TelnetStream( - ReadAsyncCallback readAsync, WriteAsyncCallback writeAsync, Func dataAvailable) : base( - new ReadBuffer(readAsync, Defaults.PhysicalStreamBufferSize), - new WriteBuffer(writeAsync, Defaults.PhysicalStreamBufferSize)) + public TelnetStream(ReadAsyncCallback readAsync, WriteAsyncCallback writeAsync, Func dataAvailable) + : base( + new ReadBuffer(readAsync, Defaults.PhysicalStreamBufferSize), + new WriteBuffer(writeAsync, Defaults.PhysicalStreamBufferSize)) { if (readAsync == null) { diff --git a/Lawo/IO/WriteBuffer.cs b/Lawo/IO/WriteBuffer.cs index 2aa271e6..cd624dcd 100644 --- a/Lawo/IO/WriteBuffer.cs +++ b/Lawo/IO/WriteBuffer.cs @@ -74,7 +74,8 @@ public sealed class WriteBuffer : Buffer /// The size of the buffer in bytes. /// equals null. /// is 0 or negative. - public WriteBuffer(WriteCallback write, int bufferSize) : base(bufferSize) + public WriteBuffer(WriteCallback write, int bufferSize) + : base(bufferSize) { if (write == null) { @@ -91,7 +92,8 @@ public WriteBuffer(WriteCallback write, int bufferSize) : base(bufferSize) /// equals null. /// is 0 or negative. [CLSCompliant(false)] - public WriteBuffer(WriteAsyncCallback writeAsync, int bufferSize) : base(bufferSize) + public WriteBuffer(WriteAsyncCallback writeAsync, int bufferSize) + : base(bufferSize) { if (writeAsync == null) { diff --git a/LawoTest/IO/BufferStreamTest.cs b/LawoTest/IO/BufferStreamTest.cs index 42534c53..6508d4fe 100644 --- a/LawoTest/IO/BufferStreamTest.cs +++ b/LawoTest/IO/BufferStreamTest.cs @@ -34,7 +34,8 @@ public void CanReadCanWriteTest() private sealed class MyBufferStream : BufferStream { - internal MyBufferStream(ReadBuffer readBuffer, WriteBuffer writeBuffer) : base(readBuffer, writeBuffer) + internal MyBufferStream(ReadBuffer readBuffer, WriteBuffer writeBuffer) + : base(readBuffer, writeBuffer) { } }