aspnetcore/test/Microsoft.AspNetCore.Signal.../TestTransportFactory.cs

23 lines
654 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.Net.Http;
using Microsoft.Extensions.Logging;
namespace Microsoft.AspNetCore.Sockets.Client.Tests
{
public class TestTransportFactory : ITransportFactory
{
private readonly ITransport _transport;
public TestTransportFactory(ITransport transport)
{
_transport = transport;
}
public ITransport CreateTransport(TransportType availableServerTransports)
{
return _transport;
}
}
}