Skip to content

Commit 9bbb103

Browse files
committed
Ported .NET Core async methods back to master.
1 parent 8afaab9 commit 9bbb103

File tree

25 files changed

+992
-402
lines changed

25 files changed

+992
-402
lines changed

.nuget/Lextm.SharpSnmpLib.nuspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<authors>Malcolm Crowe,Lex Li,and other contributors.</authors>
66
<owners>Lex Li</owners>
77
<licenseUrl>http://opensource.org/licenses/MIT</licenseUrl>
8-
<projectUrl>http://sharpsnmplib.codeplex.com/</projectUrl>
8+
<projectUrl>https://sharpsnmplib.codeplex.com/</projectUrl>
99
<frameworkAssemblies>
1010
<frameworkAssembly assemblyName="System" targetFramework="" />
1111
<frameworkAssembly assemblyName="System.Core" targetFramework="" />
@@ -15,7 +15,7 @@
1515
<requireLicenseAcceptance>true</requireLicenseAcceptance>
1616
<description>#SNMP (SharpSNMP) Library is an open source library for developers who target Microsoft .NET/Xamarin/Mono platforms. It's developed in C# and can be used for F#, VB.NET, Oxygene, and more.</description>
1717
<summary>#SNMP open source SNMP library for .NET and Mono.</summary>
18-
<releaseNotes>http://sharpsnmplib.codeplex.com/releases/view/116908</releaseNotes>
18+
<releaseNotes>https://sharpsnmplib.codeplex.com/releases/view/116908</releaseNotes>
1919
<copyright>All rights reserved. (c) 2008-2016 Malcolm Crowe, Lex Li, and other contributors.</copyright>
2020
<language>en-US</language>
2121
<tags>snmp</tags>

Samples/CSharp/snmpbulkget/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ private static IAuthenticationProvider GetAuthenticationProviderByName(string au
267267

268268
private static void ShowHelp(OptionSet optionSet)
269269
{
270-
Console.WriteLine("#SNMP is available at http://sharpsnmplib.codeplex.com");
270+
Console.WriteLine("#SNMP is available at https://sharpsnmplib.codeplex.com");
271271
Console.WriteLine("snmpbulkget [Options] IP-address|host-name OID [OID] ...");
272272
Console.WriteLine("Options:");
273273
optionSet.WriteOptionDescriptions(Console.Out);

Samples/CSharp/snmpget/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ Variable variable in
233233

234234
private static void ShowHelp(OptionSet optionSet)
235235
{
236-
Console.WriteLine("#SNMP is available at http://sharpsnmplib.codeplex.com");
236+
Console.WriteLine("#SNMP is available at https://sharpsnmplib.codeplex.com");
237237
Console.WriteLine("snmpget [Options] IP-address|host-name OID [OID] ...");
238238
Console.WriteLine("Options:");
239239
optionSet.WriteOptionDescriptions(Console.Out);

Samples/CSharp/snmpgetnext/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ private static IAuthenticationProvider GetAuthenticationProviderByName(string au
264264

265265
private static void ShowHelp(OptionSet optionSet)
266266
{
267-
Console.WriteLine("#SNMP is available at http://sharpsnmplib.codeplex.com");
267+
Console.WriteLine("#SNMP is available at https://sharpsnmplib.codeplex.com");
268268
Console.WriteLine("snmpgetnext [Options] IP-address|host-name OID [OID] ...");
269269
Console.WriteLine("Options:");
270270
optionSet.WriteOptionDescriptions(Console.Out);

Samples/CSharp/snmpset/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ private static IAuthenticationProvider GetAuthenticationProviderByName(string au
295295

296296
private static void ShowHelp(OptionSet optionSet)
297297
{
298-
Console.WriteLine("#SNMP is available at http://sharpsnmplib.codeplex.com");
298+
Console.WriteLine("#SNMP is available at https://sharpsnmplib.codeplex.com");
299299
Console.WriteLine("snmpset [Options] IP-address|host-name OID TYPE VALUE [OID TYPE VALUE] ...");
300300
Console.WriteLine("Options:");
301301
optionSet.WriteOptionDescriptions(Console.Out);

Samples/CSharp/snmptrapd/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public static void Main(string[] args)
5454
{
5555
engine.Listener.AddBinding(new IPEndPoint(IPAddress.Any, 162));
5656
engine.Start();
57-
Console.WriteLine("#SNMP is available at http://sharpsnmplib.codeplex.com");
57+
Console.WriteLine("#SNMP is available at https://sharpsnmplib.codeplex.com");
5858
Console.WriteLine("Press any key to stop . . . ");
5959
Console.Read();
6060
engine.Stop();

Samples/CSharp/snmpwalk/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ private static IAuthenticationProvider GetAuthenticationProviderByName(string au
228228

229229
private static void ShowHelp(OptionSet optionSet)
230230
{
231-
Console.WriteLine("#SNMP is available at http://sharpsnmplib.codeplex.com");
231+
Console.WriteLine("#SNMP is available at https://sharpsnmplib.codeplex.com");
232232
Console.WriteLine("snmpwalk [Options] IP-address|host-name [OID]");
233233
Console.WriteLine("Options:");
234234
optionSet.WriteOptionDescriptions(Console.Out);

Samples/VB.NET/snmpbulkget/Program.vb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,11 +233,11 @@ Module Program
233233
Return New SHA1AuthenticationProvider(New OctetString(phrase))
234234
End If
235235

236-
Throw New ArgumentException("unknown name", "authentication")
236+
Throw New ArgumentException("unknown name", NameOf(authentication))
237237
End Function
238238

239239
Private Sub ShowHelp(ByRef optionSet As OptionSet)
240-
Console.WriteLine("#SNMP is available at http://sharpsnmplib.codeplex.com")
240+
Console.WriteLine("#SNMP is available at https://sharpsnmplib.codeplex.com")
241241
Console.WriteLine("snmpbulkget [Options] IP-address|host-name OID [OID] ...")
242242
Console.WriteLine("Options:")
243243
optionSet.WriteOptionDescriptions(Console.Out)

Samples/VB.NET/snmpget/Program.vb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ Module Program
213213
End Sub
214214

215215
Private Sub ShowHelp(ByRef optionSet As OptionSet)
216-
Console.WriteLine("#SNMP is available at http://sharpsnmplib.codeplex.com")
216+
Console.WriteLine("#SNMP is available at https://sharpsnmplib.codeplex.com")
217217
Console.WriteLine("snmpget [Options] IP-address|host-name OID [OID] ...")
218218
Console.WriteLine("Options:")
219219
optionSet.WriteOptionDescriptions(Console.Out)
@@ -228,6 +228,6 @@ Module Program
228228
Return New SHA1AuthenticationProvider(New OctetString(phrase))
229229
End If
230230

231-
Throw New ArgumentException("unknown name", "authentication")
231+
Throw New ArgumentException("unknown name", NameOf(authentication))
232232
End Function
233233
End Module

Samples/VB.NET/snmpgetnext/Program.vb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,11 +228,11 @@ Module Program
228228
Return New SHA1AuthenticationProvider(New OctetString(phrase))
229229
End If
230230

231-
Throw New ArgumentException("unknown name", "authentication")
231+
Throw New ArgumentException("unknown name", NameOf(authentication))
232232
End Function
233233

234234
Private Sub ShowHelp(ByRef optionSet As OptionSet)
235-
Console.WriteLine("#SNMP is available at http://sharpsnmplib.codeplex.com")
235+
Console.WriteLine("#SNMP is available at https://sharpsnmplib.codeplex.com")
236236
Console.WriteLine("snmpgetnext [Options] IP-address|host-name OID [OID] ...")
237237
Console.WriteLine("Options:")
238238
optionSet.WriteOptionDescriptions(Console.Out)

0 commit comments

Comments
 (0)