Thank you for your interest in DockPanel Suite Organization (the "Organization"). In order to clarify the intellectual property license granted with Contributions from any person or entity, the Organization must have a Contributor License Agreement ("CLA") on file that has been signed by each Contributor, indicating agreement to the license terms below. This license is for your protection as a Contributor as well as the protection of the Organization and its users; it does not change your rights to use your own Contributions for any other purpose. If you have not already done so, please complete and sign.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private sealed partial class statement_return : AstParserRuleReturnScope<CommonTree, IToken> | |
{ | |
public MibDocument result = new MibDocument(); | |
public statement_return(SmiParser grammar) {OnCreated(grammar);} | |
partial void OnCreated(SmiParser grammar); | |
} | |
partial void EnterRule_statement(); | |
partial void LeaveRule_statement(); | |
// $ANTLR start "statement" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.ServiceProcess; | |
using System.Threading; | |
namespace ConsoleApplication1 | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Test] | |
public void TestTypeValidation() | |
{ | |
var registry = new SimpleObjectRegistry(); | |
var collector = new ErrorRegistry(); | |
registry.Import(Parser.Compile(new MemoryStream(Resources.SNMPv2_SMI), collector)); | |
registry.Import(Parser.Compile(new MemoryStream(Resources.SNMPv2_CONF), collector)); | |
registry.Import(Parser.Compile(new MemoryStream(Resources.SNMPv2_TC), collector)); | |
registry.Import(Parser.Compile(new MemoryStream(Resources.SNMPv2_MIB), collector)); | |
registry.Import(Parser.Compile(new MemoryStream(Resources.SNMPv2_TM), collector)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// DateAndTime | |
Assert.IsTrue(registry.Verify("TEST-MIB", "testEntity5", new OctetString(new byte[] { 0x9, 0x9, 0x9, 0x9, 0x9, 0x9, 0x9, 0x9 }))); | |
Assert.IsTrue(registry.Verify("TEST-MIB", "testEntity5", new OctetString(new byte[] { 0x9, 0x9, 0x9, 0x9, 0x9, 0x9, 0x9, 0x9, 0x9, 0x9, 0x9 }))); | |
Assert.Throws<InvalidOperationException>(() => registry.Decode("TEST-MIB", "testEntity5", new OctetString(new byte[] { 0x9, 0x9, 0x9, 0x9, 0x9, 0x9, 0x9, 0x9, 0x9, 0x9, 0x9 }))); | |
Assert.AreEqual("8/17/2004 3:48:00 PM (UTC-05:00) Bogota, Lima, Quito", registry.Decode("TEST-MIB", "testEntity5", new OctetString(new byte[] { 0x07, 0xD4, 0x08, 0x11, 0x0F, 0x30, 0x00, 0x00, 0x2D, 0x05, 0x00 }))); | |
Assert.AreEqual("08/17/2004 15:48:00", registry.Decode("TEST-MIB", "testEntity5", new OctetString(new byte[] { 0x07, 0xD4, 0x08, 0x11, 0x0F, 0x30, 0x00, 0x00 }))); | |
Assert.AreEqual("5/26/1992 1:30:15 PM (UTC-04:00) Asuncion", registry.Decode("TEST-MIB", "testEntity5", new OctetString(new byte[] { 0x07, 0xC8, 5, 26, 13, 30, 15, 0x00, 0x2D |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Globalization; | |
using Lextm.SharpSnmpLib; | |
namespace Lextm.SharpSnmpPro.Mib.Decoders | |
{ | |
internal sealed class DateAndTimeDecoder : IDecoder | |
{ | |
public string Decode(ISnmpData data) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
internal static class NativeMethods | |
{ | |
private static readonly HTTPAPI_VERSION HttpApiVersion = new HTTPAPI_VERSION(1, 0); | |
#region DllImport | |
[DllImport("httpapi.dll", SetLastError = true)] | |
static extern uint HttpInitialize( | |
HTTPAPI_VERSION version, | |
uint flags, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
// ReSharper disable InconsistentNaming | |
namespace JexusManager | |
{ | |
using System.Diagnostics; | |
using System.Runtime.InteropServices; | |
using System.Security.Principal; | |
using System.Windows.Forms; |
Thank you for your interest in LeXtudio projects (the "Organization"). In order to clarify the intellectual property license granted with Contributions from any person or entity, the Organization must have a Contributor License Agreement ("CLA") on file that has been signed by each Contributor, indicating agreement to the license terms below. This license is for your protection as a Contributor as well as the protection of the Organization and its users; it does not change your rights to use your own Contributions for any other purpose. If you have not already done so, please complete and sign.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
digraph "XXX" | |
{ | |
nodesep=0; sep=0; ranksep=0 | |
ratio="compress" | |
packmode="node"; pack=1 | |
pad=0 | |
splines=true | |
rankdir=TB // top-bottom | |
concentrate=true; | |
//K=0 |