2020-03-27 22:54:29 +03:00
|
|
|
|
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
|
|
|
// Licensed under the MIT license.
|
|
|
|
|
|
|
|
|
|
using System.Fabric;
|
|
|
|
|
using Microsoft.ServiceFabric.Services.Remoting;
|
2023-11-21 18:24:20 +03:00
|
|
|
|
using Microsoft.ServiceFabric.Services.Remoting.FabricTransport.Runtime;
|
2020-03-27 22:54:29 +03:00
|
|
|
|
|
|
|
|
|
namespace Microsoft.Omex.Extensions.Hosting.Services.Remoting.UnitTests
|
|
|
|
|
{
|
|
|
|
|
internal class MockRemoteListenerBuilder<TService> : RemotingListenerBuilder<TService>
|
|
|
|
|
where TService : IServiceFabricService<ServiceContext>
|
|
|
|
|
{
|
2023-11-21 18:24:20 +03:00
|
|
|
|
public MockRemoteListenerBuilder() : base("TestListener", new FabricTransportRemotingListenerSettings()) { }
|
2020-03-27 22:54:29 +03:00
|
|
|
|
|
|
|
|
|
public override IService BuildService(TService service) => new MockService();
|
|
|
|
|
}
|
|
|
|
|
}
|