Skip to content

Commit

Permalink
Merge pull request #36 from Smudge202/dev
Browse files Browse the repository at this point in the history
Alpha 9 - Cancellable Command Line and OWIN Resolve
  • Loading branch information
smudge202 committed Mar 27, 2015
2 parents 9013d0a + 5f0aac4 commit 6f6cc39
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
2 changes: 0 additions & 2 deletions NuGet.config
Expand Up @@ -2,8 +2,6 @@
<configuration>
<packageSources>
<add key="NuGet official package source" value="https://nuget.org/api/v2/" />
<add key="ASP.Net vNext Nightly" value="https://www.myget.org/F/aspnetvnext/" />
<add key="Build Outputs" value="artifacts\packages" />
</packageSources>
<activePackageSource>
<add key="All" value="(Aggregate source)" />
Expand Down
5 changes: 5 additions & 0 deletions src/Compose.Owin/OwinApplication.cs
Expand Up @@ -14,6 +14,11 @@ public void OnExecute(IAppBuilder appbuilder, Func<IOwinContext, Task> invoke)
_execution = () => appbuilder.Run(invoke);
}

public void OnExecute<TService>(IAppBuilder appbuilder, Func<TService, IOwinContext, Task> invoke) where TService : class
{
OnExecute(appbuilder, (context) => invoke(GetRequiredService<TService>(), context));
}

public void Execute()
{
_execution();
Expand Down
5 changes: 4 additions & 1 deletion src/Compose/CommandLineApplication.cs
@@ -1,4 +1,7 @@
namespace Compose
using System.Threading;

namespace Compose
{
public class CommandLineApplication : Executable<int> { }
public class CancellableCommandLineApplication : Executable<CancellationToken, int> { }
}
2 changes: 1 addition & 1 deletion src/Compose/Compose.nuspec
Expand Up @@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata>
<id>Compose</id>
<version>0.0.8-alpha</version>
<version>0.0.9-alpha</version>
<authors>Tommy Long</authors>
<owners>Tommy Long</owners>
<licenseUrl>https://raw.githubusercontent.com/Smudge202/Compose/master/LICENSE</licenseUrl>
Expand Down

0 comments on commit 6f6cc39

Please sign in to comment.