25 lines
608 B
C#
25 lines
608 B
C#
// Copyright (c) .NET Foundation. All rights reserved.
|
|
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
|
|
|
using System;
|
|
|
|
namespace SampleApp
|
|
{
|
|
public class Program
|
|
{
|
|
private IServiceProvider _services;
|
|
|
|
public Program(IServiceProvider services)
|
|
{
|
|
_services = services;
|
|
}
|
|
|
|
public void Main(string[] args)
|
|
{
|
|
new Microsoft.AspNet.Hosting.Program(_services).Main(new[] {
|
|
"--server", "Microsoft.AspNet.Server.Kestrel"
|
|
});
|
|
}
|
|
}
|
|
}
|