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.Threading.Tasks; | |
using System.IO; | |
using System.Text.RegularExpressions; | |
using Microsoft.AspNet.Builder; | |
using Microsoft.AspNet.Http; | |
using Microsoft.Framework.DependencyInjection; | |
namespace IFTTTEndpoint | |
{ |
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
# the service params (Octo can/should pass these in) | |
$serviceName = "MyCompany.MyService" | |
$serviceExe = "MyService.exe" | |
$fullPath = Join-Path -Path $OctopusPackageDirectoryPath -ChildPath $serviceExe | |
# resolve service context | |
$service = Get-Service MyCompany.MyService -ErrorAction SilentlyContinue | |
if (! $service) |
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
/* | |
-- create utility Number table (just simplifies the initialize below) | |
if object_id('dbo.Number') is not null | |
drop table dbo.Number; | |
go | |
create table dbo.Number | |
( | |
N int not null primary key clustered | |
); | |
go |