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
[TestFixture] | |
public class ProcessWrapperFixture | |
{ | |
ProcessWrapper processWrapper; | |
[SetUp] | |
public void SetUp() | |
{ | |
processWrapper = new ProcessWrapper(Process.GetCurrentProcess()); | |
} |
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
static void Main(string[] args) | |
{ | |
var hashAlgorithm = SHA512.Create(); | |
var text = "Hello world"; | |
var bytes = Encoding.Default.GetBytes(text); | |
var hashes = new List<string>(); | |
Parallel.For(0, 10000, ignored => |
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.Data.Entity; | |
using System.Data.Entity.Infrastructure; | |
using Octopus.Core.Model; | |
namespace Octopus.Core.Persistance | |
{ | |
public class DataContext : DbContext, IDataContext | |
{ | |
public DataContext(string connectionString) |
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
Summary | |
------------------------------------------------- | |
2011-12-23 04:23:43 INFO Stage 1: Downloading packages from NuGet servers | |
2011-12-23 04:23:44 INFO Stage 2: Uploading packages to Tentacles | |
2011-12-23 04:23:44 INFO Stage 3: Installation | |
2011-12-23 04:23:57 INFO Deployment complete! | |
Details | |
------------------------------------------------- | |
Stage 1: Downloading packages from NuGet servers |
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
public class ApiAreaRegistration : AreaRegistration | |
{ | |
public override string AreaName | |
{ | |
get { return "Api"; } | |
} | |
public override void RegisterArea(AreaRegistrationContext context) | |
{ | |
MapRestfulRoutes("API120", context, "Api/Projects/{projectId}/Releases", "Releases"); |
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
<?xml version="1.0" encoding="utf-8"?><rss version="2.0"><channel><title>Ayende @ Rahien</title><link>http://ayende.com/blog/syndication/rss</link><description>Ayende @ Rahien</description><copyright>Copyright (C) Ayende Rahien 2004 - 2011 (c) 2012</copyright><ttl>60</ttl><item><title>Out of context, architecture is nothing but modern art</title><description><p> | |
When I am thinking about modern art, I am thinking about an experience that I had that was remarkably similar to <a href="http://tonyvanhelsing.blogspot.com/2011/05/modern-art.html">this one</a>:</p> | |
<p> | |
<img src="http://1.bp.blogspot.com/-e2aJXImlhfY/TcKrSw69D4I/AAAAAAAAAIU/xjjNNNGj_Fw/s1600/modern_art.jpg" /></p> | |
<p> |
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.Collections.Generic; | |
namespace Octopus.Core.Model | |
{ | |
public class Machine | |
{ | |
[Obsolete("Persistance")] | |
public Machine() | |
{ |
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.Data.Entity; | |
using System.Data.Entity.Infrastructure; | |
using Octopus.Core.Model; | |
namespace Octopus.Core.Persistance | |
{ | |
public class DataContext : DbContext, IDataContext | |
{ | |
public DataContext(string connectionString) |
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.ComponentModel.DataAnnotations; | |
using System.Web.Mvc; | |
using Octopus.Core.Model; | |
namespace Octopus.Portal.Areas.Api.Models | |
{ | |
public class EnvironmentResource : IResource | |
{ | |
public int Id { get; set; } |
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
public class EnvironmentsController : OctopusController | |
{ | |
readonly IDataContext dataContext; | |
public EnvironmentsController(IDataContext dataContext) | |
{ | |
this.dataContext = dataContext; | |
} | |
public ActionResult Index() |