ExampleSignalR/TestProject/AppFixture.cs

27 lines
480 B
C#
Raw Normal View History

2024-11-12 18:02:09 +05:00
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();
}
}
}