refactoring
This commit is contained in:
parent
47a1031f8b
commit
6f668daad3
4 changed files with 1 additions and 206 deletions
|
|
@ -15,7 +15,7 @@ using Microsoft.AspNet.Authentication;
|
|||
using Microsoft.Extensions.WebEncoders;
|
||||
using Yavsc.Lib;
|
||||
|
||||
namespace Yavsc.test
|
||||
namespace test
|
||||
{
|
||||
public class Startup
|
||||
{
|
||||
|
|
|
|||
24
test/src/YavscServerFactory.cs
Normal file
24
test/src/YavscServerFactory.cs
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
using System;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNet.Hosting.Server;
|
||||
using Microsoft.AspNet.Http.Features;
|
||||
using Microsoft.Extensions.Configuration;
|
||||
using Yavsc.Models;
|
||||
|
||||
namespace Yavsc.Server
|
||||
{
|
||||
public class cliServerFactory : IServerFactory
|
||||
{
|
||||
public IFeatureCollection Initialize(IConfiguration configuration)
|
||||
{
|
||||
FeatureCollection featureCollection = new FeatureCollection();
|
||||
return featureCollection;
|
||||
}
|
||||
|
||||
public IDisposable Start(IFeatureCollection serverFeatures, Func<IFeatureCollection, Task> application)
|
||||
{
|
||||
var task = application(serverFeatures);
|
||||
return task;
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue