Skip to content

Commit 1f5383f

Browse files
committed
Chore: dotnet format
1 parent 0c2dda3 commit 1f5383f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+188
-188
lines changed

Source/NETworkManager.Documentation/DocumentationIdentifier.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ public enum DocumentationIdentifier
199199
/// Command line arguments.
200200
/// </summary>
201201
CommandLineArguments,
202-
202+
203203
/// <summary>
204204
/// Changelog base documentation page.
205205
/// </summary>

Source/NETworkManager.Documentation/DocumentationManager.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ public static class DocumentationManager
135135

136136
new DocumentationInfo(DocumentationIdentifier.CommandLineArguments,
137137
@"docs/commandline-arguments"),
138-
138+
139139
new DocumentationInfo(DocumentationIdentifier.ChangelogBase,
140140
@"docs/changelog")
141141
];
@@ -179,9 +179,9 @@ public static void OpenDocumentation(DocumentationIdentifier documentationIdenti
179179
public static void OpenChangelog()
180180
{
181181
var url = CreateUrl(DocumentationIdentifier.ChangelogBase);
182-
182+
183183
url += $"/{AssemblyManager.Current.Version.ToString().Replace('.', '-')}";
184-
184+
185185
ExternalProcessStarter.OpenUrl(url);
186186
}
187187

@@ -207,7 +207,7 @@ public static DocumentationIdentifier GetIdentifierByApplicationName(Application
207207
ApplicationName.DNSLookup => DocumentationIdentifier.ApplicationDnsLookup,
208208
ApplicationName.RemoteDesktop => DocumentationIdentifier.ApplicationRemoteDesktop,
209209
ApplicationName.PowerShell => DocumentationIdentifier.ApplicationPowerShell,
210-
ApplicationName.PuTTY => DocumentationIdentifier.ApplicationPutty,
210+
ApplicationName.PuTTY => DocumentationIdentifier.ApplicationPutty,
211211
ApplicationName.TigerVNC => DocumentationIdentifier.ApplicationTigerVNC,
212212
ApplicationName.WebConsole => DocumentationIdentifier.ApplicationWebConsole,
213213
ApplicationName.SNMP => DocumentationIdentifier.ApplicationSnmp,
@@ -255,7 +255,7 @@ public static DocumentationIdentifier GetIdentifierBySettingsName(SettingsName n
255255
SettingsName.DNSLookup => GetIdentifierByApplicationName(ApplicationName.DNSLookup),
256256
SettingsName.RemoteDesktop => GetIdentifierByApplicationName(ApplicationName.RemoteDesktop),
257257
SettingsName.PowerShell => GetIdentifierByApplicationName(ApplicationName.PowerShell),
258-
SettingsName.PuTTY => GetIdentifierByApplicationName(ApplicationName.PuTTY),
258+
SettingsName.PuTTY => GetIdentifierByApplicationName(ApplicationName.PuTTY),
259259
SettingsName.TigerVNC => GetIdentifierByApplicationName(ApplicationName.TigerVNC),
260260
SettingsName.SNMP => GetIdentifierByApplicationName(ApplicationName.SNMP),
261261
SettingsName.SNTPLookup => GetIdentifierByApplicationName(ApplicationName.SNTPLookup),

Source/NETworkManager.Documentation/LibraryManager.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public static class LibraryManager
2727
new LibraryInfo("AirspaceFixer", "https://github.com/chris84948/AirspaceFixer",
2828
Strings.Library_AirspaceFixer_Description,
2929
Strings.License_MITLicense,
30-
"https://github.com/chris84948/AirspaceFixer/blob/master/LICENSE"),
30+
"https://github.com/chris84948/AirspaceFixer/blob/master/LICENSE"),
3131
new LibraryInfo("ControlzEx", "https://github.com/ControlzEx/ControlzEx",
3232
Strings.Library_ControlzEx_Description,
3333
Strings.License_MITLicense,

Source/NETworkManager.Models/ApplicationManager.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public static Canvas GetIcon(ApplicationName name)
7575
break;
7676
case ApplicationName.PuTTY:
7777
canvas.Children.Add(new PackIconFontAwesome { Kind = PackIconFontAwesomeKind.TerminalSolid });
78-
break;
78+
break;
7979
case ApplicationName.TigerVNC:
8080
canvas.Children.Add(new PackIconMaterial { Kind = PackIconMaterialKind.EyeOutline });
8181
break;

Source/NETworkManager.Models/HostsFileEditor/HostsFileEntry.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public class HostsFileEntry
2525
/// Comment of the host.
2626
/// </summary>
2727
public string Comment { get; init; }
28-
28+
2929
/// <summary>
3030
/// Line of the entry in the hosts file.
3131
/// </summary>
@@ -52,17 +52,17 @@ public HostsFileEntry(bool isEnabled, string ipAddress, string hostname, string
5252
IPAddress = ipAddress;
5353
Hostname = hostname;
5454
Comment = comment;
55-
55+
5656
var line = isEnabled ? "" : "# ";
5757

5858
line += $"{ipAddress} {hostname}";
5959

6060
if (!string.IsNullOrWhiteSpace(comment))
6161
line += $" # {comment}";
62-
62+
6363
Line = line;
6464
}
65-
65+
6666
/// <summary>
6767
/// Creates a new instance of <see cref="HostsFileEntry" /> with parameters.
6868
/// </summary>
@@ -79,7 +79,7 @@ public HostsFileEntry(bool isEnabled, string ipAddress, string hostname, string
7979
Comment = comment;
8080
Line = line;
8181
}
82-
82+
8383
/// <summary>
8484
/// Overrides the ToString method to return the line of the entry in the hosts file.
8585
/// </summary>

Source/NETworkManager.Models/Network/IPScanner.cs

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ private Task<PingInfo> PingAsync(IPAddress ipAddress, CancellationToken cancella
216216
{
217217
// Get timestamp
218218
var timestamp = DateTime.Now;
219-
219+
220220
try
221221
{
222222
var pingReply = ping.Send(ipAddress, options.ICMPTimeout, options.ICMPBuffer);
@@ -227,20 +227,20 @@ private Task<PingInfo> PingAsync(IPAddress ipAddress, CancellationToken cancella
227227
switch (ipAddress.AddressFamily)
228228
{
229229
case AddressFamily.InterNetwork:
230-
return new PingInfo(
231-
timestamp,
232-
pingReply.Address,
233-
pingReply.Buffer.Length,
234-
pingReply.RoundtripTime,
235-
pingReply.Options!.Ttl,
236-
pingReply.Status);
230+
return new PingInfo(
231+
timestamp,
232+
pingReply.Address,
233+
pingReply.Buffer.Length,
234+
pingReply.RoundtripTime,
235+
pingReply.Options!.Ttl,
236+
pingReply.Status);
237237
case AddressFamily.InterNetworkV6:
238-
return new PingInfo(
239-
timestamp,
240-
pingReply.Address,
241-
pingReply.Buffer.Length,
242-
pingReply.RoundtripTime,
243-
pingReply.Status);
238+
return new PingInfo(
239+
timestamp,
240+
pingReply.Address,
241+
pingReply.Buffer.Length,
242+
pingReply.RoundtripTime,
243+
pingReply.Status);
244244
}
245245
}
246246

Source/NETworkManager.Models/Network/Traceroute.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,9 @@ public void TraceAsync(IPAddress ipAddress, CancellationToken cancellationToken)
7979

8080
// Check results -> Get IP on success or TTL expired
8181
var ipAddressHop = (from task in tasks
82-
where task.Result.Item1.Status != IPStatus.TimedOut
83-
where task.Result.Item1.Status is IPStatus.TtlExpired or IPStatus.Success
84-
select task.Result.Item1.Address).FirstOrDefault();
82+
where task.Result.Item1.Status != IPStatus.TimedOut
83+
where task.Result.Item1.Status is IPStatus.TtlExpired or IPStatus.Success
84+
select task.Result.Item1.Address).FirstOrDefault();
8585

8686
// Resolve Hostname
8787
var hostname = string.Empty;

Source/NETworkManager.Models/Network/WakeOnLAN.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ public static byte[] CreateMagicPacket(byte[] mac)
2323
packet[i] = 0xFF;
2424

2525
for (var i = 1; i <= 16; i++)
26-
for (var j = 0; j < 6; j++)
27-
packet[i * 6 + j] = mac[j];
26+
for (var j = 0; j < 6; j++)
27+
packet[i * 6 + j] = mac[j];
2828

2929
return packet;
3030
}

Source/NETworkManager.Models/Network/Whois.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ static Whois()
1818
document.Load(WhoisServerFilePath);
1919

2020
var whoisServerList = (from XmlNode node in document.SelectNodes("/WhoisServers/WhoisServer")!
21-
where node != null
22-
select new WhoisServerInfo(node.SelectSingleNode("Server")?.InnerText,
23-
node.SelectSingleNode("TLD")?.InnerText)).ToList();
21+
where node != null
22+
select new WhoisServerInfo(node.SelectSingleNode("Server")?.InnerText,
23+
node.SelectSingleNode("TLD")?.InnerText)).ToList();
2424

2525
WhoisServers = (Lookup<string, WhoisServerInfo>)whoisServerList.ToLookup(x => x.Tld);
2626
}

Source/NETworkManager.Models/Network/WiFiNetworkInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,12 @@ public WiFiNetworkInfo()
5151
/// Human-readable network authentication type.
5252
/// </summary>
5353
public string NetworkAuthenticationType { get; set; }
54-
54+
5555
/// <summary>
5656
/// Vendor of the Wi-Fi network like Cisco, Netgear, etc.
5757
/// </summary>
5858
public string Vendor { get; set; }
59-
59+
6060
/// <summary>
6161
/// Human-readable phy kind.
6262
/// </summary>

0 commit comments

Comments
 (0)