ExampleSignalR/TestProject/AppFixture.cs

27 lines
480 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore;
namespace ExampleSignalR.Test
{
public class AppFixture
{
public const string BaseUrl = "http://localhost:54321";
static AppFixture()
{
var webhost = WebHost
.CreateDefaultBuilder(null)
.UseStartup<IStartup>()
.UseUrls(BaseUrl)
.Build();
webhost.Start();
}
}
}