mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-07 12:26:18 +00:00
(build) Updated Cake Frosting to version 1.0.0 (#2289)
This commit is contained in:
+6
-17
@@ -1,24 +1,13 @@
|
||||
using Cake.Core;
|
||||
using Cake.Frosting;
|
||||
|
||||
public class Program : IFrostingStartup
|
||||
public class Program
|
||||
{
|
||||
public static int Main(string[] args)
|
||||
{
|
||||
// Create the host.
|
||||
var host = new CakeHostBuilder()
|
||||
.WithArguments(args)
|
||||
.UseStartup<Program>()
|
||||
.Build();
|
||||
|
||||
// Run the host.
|
||||
return host.Run();
|
||||
}
|
||||
|
||||
public void Configure(ICakeServices services)
|
||||
{
|
||||
services.UseContext<Context>();
|
||||
services.UseLifetime<Lifetime>();
|
||||
services.UseWorkingDirectory("..");
|
||||
return new CakeHost()
|
||||
.UseContext<Context>()
|
||||
.UseLifetime<Lifetime>()
|
||||
.Run(args);
|
||||
;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user