app.Use<PureMiddleware>();
app.Use<LoggingMiddleware>();
app.UseHandlerAsync(async (request, response) =>
{
Console.WriteLine("Request " + request.Uri.AbsoluteUri);
response.ContentType = "text/plain";
await response.WriteAsync("Hello, World! " + request.Uri.AbsoluteUri);
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
goo.gl/tbJRI2 | |
419 | |
_MuchZockt_ | |
Aragorn | |
chgeuer | |
chiniminiz | |
James Cameron | |
Lamon |
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
------------------------------------------ | |
Main problem seems to be this: | |
Could not load signature of Microsoft.WindowsAzure.CloudCredentials:ProcessHttpRequestAsync due to: | |
Could not load file or assembly or one of its dependencies. | |
Could not load signature of Microsoft.WindowsAzure.ICloudTracingInterceptor:SendRequest due to: | |
Could not load file or assembly or one of its dependencies. |
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
/* | |
* await client.CreateAttachmentAsync(document.AttachmentsLink, someStream, new MediaOptions { Slug = "attachment.jpg", ContentType = "..." }); | |
* | |
* var attachments = client.CreateAttachmentQuery(attachmentsLink)... | |
* Attachment attachment = ... | |
* attachment.Id == "attachment.jpg" | |
* | |
* MediaResponse content = await client.ReadMediaAsync(attachment.MediaLink); | |
* content.Slug == "" |
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
namespace Microsoft.ChGeuer | |
{ | |
using Microsoft.Azure; | |
using Microsoft.WindowsAzure.Management.Compute; | |
using Microsoft.WindowsAzure.Management.Compute.Models; | |
using Microsoft.WindowsAzure.Management.Storage; | |
using Microsoft.WindowsAzure.Management.Storage.Models; | |
using Microsoft.WindowsAzure.Storage; | |
using Microsoft.WindowsAzure.Storage.Auth; | |
using Microsoft.WindowsAzure.Storage.Blob; |
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
FROM ubuntu:14.04.2 | |
MAINTAINER [email protected] | |
RUN apt-get update && \ | |
apt-get install mono-complete curl unzip && \ | |
mkdir /usr/local/orleans && \ | |
curl https://chgeuer.blob.core.windows.net/public/orleans1_0.zip > /usr/local/orleans/orleans1_0.zip && \ | |
cd /usr/local/orleans && \ | |
unzip orleans1_0.zip |
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
namespace microsoft.chgeuer.crypto | |
{ | |
// compile this baby against https://github.com/bcgit/bc-csharp | |
// or against NuGet <package id="BouncyCastle" version="1.7.0" targetFramework="net45" /> | |
using Org.BouncyCastle.Asn1.X9; | |
using Org.BouncyCastle.Crypto.Generators; | |
using Org.BouncyCastle.Crypto.Parameters; | |
using Org.BouncyCastle.Security; |
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
// <package id="Heijden.Dns" version="1.0.0" targetFramework="net45" /> | |
var aRecord = new Heijden.DNS.Resolver().Query("somedomain.de", Heijden.DNS.QType.A); | |
foreach (var x in aRecord.Answers) | |
Console.WriteLine("Answer: {0} is an {1} record for {2} (TTL {3})", | |
x.NAME, x.Type, x.RECORD, TimeSpan.FromSeconds( x.TTL)); | |
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
Func<string, Task<bool>> CheckNameAvailabilityAsync = async (cloudServiceName) => | |
{ | |
var computeManagementClient = new Microsoft.WindowsAzure.Management.Compute.ComputeManagementClient( // Microsoft.WindowsAzure.Management.Compute.8.0.0 | |
new Microsoft.Azure.CertificateCloudCredentials( // Microsoft.Azure.Common.2.0.1 | |
subscriptionID, subscriptionManagementCertificateThumbprint.FindX509CertificateByThumbprint(storeLocation))); | |
var result = await computeManagementClient.HostedServices.CheckNameAvailabilityAsync(cloudServiceName, cancellationToken); | |
return result.IsAvailable; | |
}; |