Skip to content

Commit d3c58ed

Browse files
committed
Formatting comments
1 parent a1b47e5 commit d3c58ed

File tree

4 files changed

+17
-25
lines changed

4 files changed

+17
-25
lines changed

src/EmberLibConsumer.net/Lawo.EmberPlusSharp/S101/S101Client.cs

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -395,24 +395,22 @@ private async Task SendMessageCoreAsync(S101Message message, byte[] payload)
395395
{
396396
await this.EnqueueLogOperation(() => this.logger.LogMessage(LogNames.Send, message, payload));
397397

398-
await this.sendQueue.Enqueue(
399-
async () =>
400-
{
401-
var payloadStream = await this.writer.WriteMessageAsync(message, this.source.Token);
398+
await this.sendQueue.Enqueue(async () => {
399+
var payloadStream = await this.writer.WriteMessageAsync(message, this.source.Token);
402400

403-
if ((payload == null) != (payloadStream == null))
404-
{
405-
throw new ArgumentException(
406-
"The payload requirements of the command of the passed message do not match the passed payload.",
407-
nameof(payload));
408-
}
401+
if ((payload == null) != (payloadStream == null))
402+
{
403+
throw new ArgumentException(
404+
"The payload requirements of the command of the passed message do not match the passed payload.",
405+
nameof(payload));
406+
}
409407

410-
if (payload != null)
411-
{
412-
await payloadStream.WriteAsync(payload, 0, payload.Length, this.source.Token);
413-
await payloadStream.DisposeAsync(this.source.Token);
414-
}
415-
});
408+
if (payload != null)
409+
{
410+
await payloadStream.WriteAsync(payload, 0, payload.Length, this.source.Token);
411+
await payloadStream.DisposeAsync(this.source.Token);
412+
}
413+
});
416414
}
417415

418416
private async Task SendOutOfFrameByteCoreAsync(byte value)

src/EmberLibConsumer.net/Lawo.EmberPlusSharpTestVB/Lawo.EmberPlusSharpTestVB.vbproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@
123123
<Compile Include="My Project\Application.Designer.vb">
124124
<AutoGen>True</AutoGen>
125125
<DependentUpon>Application.myapp</DependentUpon>
126+
<DesignTime>True</DesignTime>
126127
</Compile>
127128
<Compile Include="Model\TutorialTest.vb" />
128129
</ItemGroup>
-6 KB
Binary file not shown.

src/EmberLibConsumer.net/Lawo/Threading/NativeMethods.cs

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,13 @@ namespace Lawo.Threading
88
{
99
using System;
1010
using System.Diagnostics.CodeAnalysis;
11-
//using System.Runtime.InteropServices;
1211

1312
/// <summary>Provides access to native methods.</summary>
1413
/// <threadsafety static="true" instance="false"/>
1514
public static class NativeMethods
1615
{
17-
/// <summary>Returns the return value of
18-
/// <see href="https://msdn.microsoft.com/en-us/library/windows/desktop/ms683183.aspx">GetCurrentThreadId</see>.
19-
/// </summary>
20-
//[SuppressMessage("Microsoft.Design", "CA1024:UsePropertiesWhereAppropriate", Justification = "Expensive method.")]
21-
//[SuppressMessage("Microsoft.Interoperability", "CA1401:PInvokesShouldNotBeVisible", Justification = "Public access to this method is not a security concern.")]
22-
//[DllImport("Kernel32.dll")]
23-
//public static extern uint GetCurrentThreadId();
24-
16+
/// <summary>Returns an integer that represents a unique identifier for the current managed thread.</summary>
17+
[SuppressMessage("Microsoft.Design", "CA1024:UsePropertiesWhereAppropriate", Justification = "Expensive method.")]
2518
public static uint GetCurrentThreadId()
2619
{
2720
return Convert.ToUInt32(System.Threading.Thread.CurrentThread.ManagedThreadId);

0 commit comments

Comments
 (0)