31 lines
812 B
C#
31 lines
812 B
C#
|
/*
|
|||
|
* Copyright (c) 2018 ETH Zürich, Educational Development and Technology (LET)
|
|||
|
*
|
|||
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|||
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|||
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|||
|
*/
|
|||
|
|
|||
|
using SafeExamBrowser.Contracts.Communication;
|
|||
|
using SafeExamBrowser.Contracts.Logging;
|
|||
|
using SafeExamBrowser.Core.Communication;
|
|||
|
using SafeExamBrowser.Core.Logging;
|
|||
|
|
|||
|
namespace SafeExamBrowser.Runtime.Communication
|
|||
|
{
|
|||
|
internal class ProxyFactory : IProxyFactory
|
|||
|
{
|
|||
|
private ILogger logger;
|
|||
|
|
|||
|
public ProxyFactory(ILogger logger)
|
|||
|
{
|
|||
|
this.logger = logger;
|
|||
|
}
|
|||
|
|
|||
|
public IClientProxy CreateClientProxy(string address)
|
|||
|
{
|
|||
|
return new ClientProxy(address, new ModuleLogger(logger, typeof(ClientProxy)));
|
|||
|
}
|
|||
|
}
|
|||
|
}
|