seb-win-refactoring/SafeExamBrowser.Core/Communication/ServiceProxy.cs

35 lines
877 B
C#
Raw Normal View History

/*
* 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 System;
using SafeExamBrowser.Contracts.Communication;
using SafeExamBrowser.Contracts.Logging;
using SafeExamBrowser.Core.Communication.Messages;
namespace SafeExamBrowser.Core.Communication
{
public class ServiceProxy : BaseProxy, IServiceProxy
{
public ServiceProxy(ILogger logger, string address) : base(logger, address)
{
}
public bool Connect()
{
throw new NotImplementedException();
}
public void Disconnect()
{
FailIfNotConnected(nameof(Disconnect));
Disconnect(new Message { CommunicationToken = CommunicationToken.Value });
}
}
}