Skip to content

Commit

Permalink
Bumped the NuGet version to 9.0.2 RC.
Browse files Browse the repository at this point in the history
  • Loading branch information
lextm committed Jul 3, 2016
1 parent 9bbb103 commit 9ecce8b
Show file tree
Hide file tree
Showing 15 changed files with 2,823 additions and 1 deletion.
Binary file added .nuget/Lextm.SharpSnmpLib.9.0.0.nupkg
Binary file not shown.
Binary file added .nuget/Lextm.SharpSnmpLib.9.0.1.nupkg
Binary file not shown.
2 changes: 1 addition & 1 deletion .nuget/Lextm.SharpSnmpLib.nuspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0"?>
<package xmlns="http://schemas.microsoft.com/packaging/2011/10/nuspec.xsd">
<metadata>
<version>9.0.1</version>
<version>9.0.2-rc</version>
<authors>Malcolm Crowe,Lex Li,and other contributors.</authors>
<owners>Lex Li</owners>
<licenseUrl>http://opensource.org/licenses/MIT</licenseUrl>
Expand Down
1,030 changes: 1,030 additions & 0 deletions .vs/config/applicationhost.config

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions .vs/restore.dg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#:C:\Users\lextm\Downloads\sharpsnmplib\Tests\Tests.xproj
C:\Users\lextm\Downloads\sharpsnmplib\Tests\Tests.xproj|C:\Users\lextm\Downloads\sharpsnmplib\SharpSnmpLib\SharpSnmpLib.xproj
6 changes: 6 additions & 0 deletions ConsoleApplication1/App.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
</startup>
</configuration>
69 changes: 69 additions & 0 deletions ConsoleApplication1/ConsoleApplication1.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{778279AA-A777-47F7-9795-31CA57824E4A}</ProjectGuid>
<OutputType>Exe</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>ConsoleApplication1</RootNamespace>
<AssemblyName>ConsoleApplication1</AssemblyName>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Net.Http" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<None Include="App.config" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\SharpSnmpLib\SharpSnmpLib.Full.csproj">
<Project>{286de6db-8f95-4bd4-86a2-86488d2e0ee1}</Project>
<Name>SharpSnmpLib.Full</Name>
</ProjectReference>
<ProjectReference Include="..\SharpSnmpLib\SharpSnmpLib.Portable.csproj">
<Project>{0b7f931d-721e-4ced-8506-463777c4a1a8}</Project>
<Name>SharpSnmpLib.Portable</Name>
</ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>
45 changes: 45 additions & 0 deletions ConsoleApplication1/Program.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
using Lextm.SharpSnmpLib.Messaging;
using Lextm.SharpSnmpLib;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Net;
using Lextm.SharpSnmpLib.Security;
using System.Net.Sockets;

namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
var community = new OctetString("public");
var request = new GetRequestMessage(2, VersionCode.V1, community, new List<Variable>
{
new Variable(new ObjectIdentifier("0.0"))
});
var registry = new UserRegistry();
var socket = new Socket(SocketType.Dgram, ProtocolType.Udp);
var dest = new IPEndPoint(IPAddress.Parse("127.0.0.1"), 161);
Console.WriteLine("snapshot 1");
Console.ReadKey();
Console.WriteLine("started");
Task.Run(async () =>
{
for (int index = 0; index < 1000000; index++)
{
var response = await request.GetResponseAsync(
dest,
registry,
socket);
Console.WriteLine(response.Scope.Pdu.ErrorStatus);
}
});

Console.WriteLine("snapshot 2");
Console.ReadKey();
}
}
}
36 changes: 36 additions & 0 deletions ConsoleApplication1/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;

// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("ConsoleApplication1")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("ConsoleApplication1")]
[assembly: AssemblyCopyright("Copyright © 2016")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]

// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("778279aa-a777-47f7-9795-31ca57824e4a")]

// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
Loading

0 comments on commit 9ecce8b

Please sign in to comment.