This file contains hidden or 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
void ParseHost(string host, TimeSpan timeSpan, Action<Exception, string, IPAddress> callback) | |
{ | |
IPAddress ipaddress; | |
if (IPAddress.TryParse(host, out ipaddress)) { | |
callback(null, host, ipaddress); | |
} else { | |
bool timeout = false; | |
Context.CreateTimerWatcher(timeSpan, delegate { | |
callback(new Exception("Timeout while resolving"), null, null); | |
timeout = true; |
This file contains hidden or 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.Text; | |
using Manos.IO; | |
namespace Test | |
{ | |
public static class ByteBufferExtensions | |
{ | |
public static string GetString(this ByteBuffer buffer, Encoding encoding) |
This file contains hidden or 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 Manos; | |
using Manos.IO; | |
using Manos.Threading; | |
using Manos.IO.Managed; | |
using System.Threading; | |
namespace Manos | |
{ | |
public static class BoundaryExtensions |
This file contains hidden or 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.Security.Cryptography; | |
namespace Awesome | |
{ | |
public static class RandomGenerator | |
{ | |
private static RNGCryptoServiceProvider global = | |
new RNGCryptoServiceProvider(); | |
[ThreadStatic] |
This file contains hidden or 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.Collections; | |
using System.Collections.Generic; | |
// Modified version of SmartIrc4Net available at: https://github.com/txdv/smartirc4net | |
using Meebey.SmartIrc4net; | |
using Manos.Http; | |
public class Test | |
{ |
This file contains hidden or 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 Manos; | |
using System.IO; | |
using LibGit2Sharp.Core; | |
namespace GitWiki | |
{ | |
public class GitWiki : ManosApp | |
{ | |
static string repodir = "testrepo.git/.git/"; |
NewerOlder