SEBWIN-219: Tidied up communication namespace.

This commit is contained in:
dbuechel 2018-03-15 14:32:07 +01:00
parent 2e4567d685
commit ec588e50bc
46 changed files with 77 additions and 76 deletions

View file

@ -13,7 +13,7 @@ using System.Linq;
using CefSharp;
using SafeExamBrowser.Browser.Handlers;
using SafeExamBrowser.Contracts.Behaviour;
using SafeExamBrowser.Contracts.Communication;
using SafeExamBrowser.Contracts.Communication.Proxies;
using SafeExamBrowser.Contracts.Configuration;
using SafeExamBrowser.Contracts.I18n;
using SafeExamBrowser.Contracts.Logging;

View file

@ -10,7 +10,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting;
using Moq;
using SafeExamBrowser.Client.Behaviour;
using SafeExamBrowser.Contracts.Behaviour.OperationModel;
using SafeExamBrowser.Contracts.Communication;
using SafeExamBrowser.Contracts.Communication.Proxies;
using SafeExamBrowser.Contracts.Logging;
using SafeExamBrowser.Contracts.Monitoring;
using SafeExamBrowser.Contracts.UserInterface;

View file

@ -9,7 +9,8 @@
using System;
using SafeExamBrowser.Contracts.Behaviour;
using SafeExamBrowser.Contracts.Behaviour.OperationModel;
using SafeExamBrowser.Contracts.Communication;
using SafeExamBrowser.Contracts.Communication.Hosts;
using SafeExamBrowser.Contracts.Communication.Proxies;
using SafeExamBrowser.Contracts.Configuration;
using SafeExamBrowser.Contracts.Configuration.Settings;
using SafeExamBrowser.Contracts.I18n;

View file

@ -8,7 +8,7 @@
using System;
using SafeExamBrowser.Contracts.Behaviour.OperationModel;
using SafeExamBrowser.Contracts.Communication;
using SafeExamBrowser.Contracts.Communication.Proxies;
using SafeExamBrowser.Contracts.Configuration;
using SafeExamBrowser.Contracts.I18n;
using SafeExamBrowser.Contracts.Logging;

View file

@ -8,7 +8,7 @@
using System;
using SafeExamBrowser.Contracts.Behaviour.OperationModel;
using SafeExamBrowser.Contracts.Communication;
using SafeExamBrowser.Contracts.Communication.Proxies;
using SafeExamBrowser.Contracts.I18n;
using SafeExamBrowser.Contracts.Logging;
using SafeExamBrowser.Contracts.UserInterface;

View file

@ -8,8 +8,8 @@
using System;
using SafeExamBrowser.Contracts.Communication;
using SafeExamBrowser.Contracts.Communication.Messages;
using SafeExamBrowser.Contracts.Communication.Responses;
using SafeExamBrowser.Contracts.Communication.Data;
using SafeExamBrowser.Contracts.Communication.Hosts;
using SafeExamBrowser.Contracts.Logging;
using SafeExamBrowser.Core.Communication;

View file

@ -17,7 +17,8 @@ using SafeExamBrowser.Client.Notifications;
using SafeExamBrowser.Configuration;
using SafeExamBrowser.Contracts.Behaviour;
using SafeExamBrowser.Contracts.Behaviour.OperationModel;
using SafeExamBrowser.Contracts.Communication;
using SafeExamBrowser.Contracts.Communication.Hosts;
using SafeExamBrowser.Contracts.Communication.Proxies;
using SafeExamBrowser.Contracts.Configuration;
using SafeExamBrowser.Contracts.I18n;
using SafeExamBrowser.Contracts.Logging;

View file

@ -7,7 +7,7 @@
*/
using System;
using SafeExamBrowser.Contracts.Communication;
using SafeExamBrowser.Contracts.Communication.Proxies;
using SafeExamBrowser.Contracts.Configuration;
using SafeExamBrowser.Contracts.WindowsApi;

View file

@ -7,7 +7,7 @@
*/
using System;
using SafeExamBrowser.Contracts.Communication;
using SafeExamBrowser.Contracts.Communication.Hosts;
using SafeExamBrowser.Contracts.Configuration;
using SafeExamBrowser.Contracts.Configuration.Settings;

View file

@ -8,7 +8,7 @@
using System;
namespace SafeExamBrowser.Contracts.Communication.Responses
namespace SafeExamBrowser.Contracts.Communication.Data
{
/// <summary>
/// The response to be used to reply to an authentication request (see <see cref="Messages.SimpleMessagePurport.Authenticate"/>).

View file

@ -9,7 +9,7 @@
using System;
using SafeExamBrowser.Contracts.Configuration;
namespace SafeExamBrowser.Contracts.Communication.Responses
namespace SafeExamBrowser.Contracts.Communication.Data
{
/// <summary>
/// The response to be used to reply to a configuration request (see <see cref="Messages.SimpleMessagePurport.ConfigurationNeeded"/>).

View file

@ -8,7 +8,7 @@
using System;
namespace SafeExamBrowser.Contracts.Communication.Responses
namespace SafeExamBrowser.Contracts.Communication.Data
{
/// <summary>
/// The response to a connection request (see <see cref="ICommunication.Connect(Guid?)"/>).

View file

@ -8,7 +8,7 @@
using System;
namespace SafeExamBrowser.Contracts.Communication.Messages
namespace SafeExamBrowser.Contracts.Communication.Data
{
/// <summary>
/// This is the last message transmitted from a component to its interlocutor in order to terminate a communication session.

View file

@ -8,7 +8,7 @@
using System;
namespace SafeExamBrowser.Contracts.Communication.Responses
namespace SafeExamBrowser.Contracts.Communication.Data
{
/// <summary>
/// The response transmitted to a <see cref="Messages.DisconnectionMessage"/>

View file

@ -8,7 +8,7 @@
using System;
namespace SafeExamBrowser.Contracts.Communication.Messages
namespace SafeExamBrowser.Contracts.Communication.Data
{
/// <summary>
/// The base class for messages, from which a message must inherit in order to be sent to an interlocutor via <see cref="ICommunication.Send(Message)"/>.

View file

@ -8,7 +8,7 @@
using System;
namespace SafeExamBrowser.Contracts.Communication.Messages
namespace SafeExamBrowser.Contracts.Communication.Data
{
/// <summary>
/// This message is transmitted to the runtime to request that the application be reconfigured.

View file

@ -8,7 +8,7 @@
using System;
namespace SafeExamBrowser.Contracts.Communication.Responses
namespace SafeExamBrowser.Contracts.Communication.Data
{
/// <summary>
/// The response to a <see cref="Messages.ReconfigurationMessage"/>.

View file

@ -8,7 +8,7 @@
using System;
namespace SafeExamBrowser.Contracts.Communication.Responses
namespace SafeExamBrowser.Contracts.Communication.Data
{
/// <summary>
/// The base class for respones, from which a response must inherit in order to be sent to an interlocutor as reply to <see cref="ICommunication.Send(Messages.Message)"/>.

View file

@ -8,7 +8,7 @@
using System;
namespace SafeExamBrowser.Contracts.Communication.Messages
namespace SafeExamBrowser.Contracts.Communication.Data
{
/// <summary>
/// A generic message to send simple purports without data to an interlocutor.

View file

@ -8,7 +8,7 @@
using System;
namespace SafeExamBrowser.Contracts.Communication.Messages
namespace SafeExamBrowser.Contracts.Communication.Data
{
/// <summary>
/// The possible purports of a <see cref="SimpleMessage"/>.

View file

@ -8,7 +8,7 @@
using System;
namespace SafeExamBrowser.Contracts.Communication.Responses
namespace SafeExamBrowser.Contracts.Communication.Data
{
/// <summary>
/// A generic response to reply simple purports without data to an interlocutor.

View file

@ -8,7 +8,7 @@
using System;
namespace SafeExamBrowser.Contracts.Communication.Responses
namespace SafeExamBrowser.Contracts.Communication.Data
{
/// <summary>
/// The possible purports of a <see cref="SimpleResponse"/>.

View file

@ -8,7 +8,7 @@
using System;
namespace SafeExamBrowser.Contracts.Communication
namespace SafeExamBrowser.Contracts.Communication.Hosts
{
/// <summary>
/// Defines the functionality of the communication host for the client application component.

View file

@ -8,7 +8,7 @@
using System;
namespace SafeExamBrowser.Contracts.Communication
namespace SafeExamBrowser.Contracts.Communication.Hosts
{
/// <summary>
/// Defines the functionality of the communication host for the runtime application component.

View file

@ -8,8 +8,7 @@
using System;
using System.ServiceModel;
using SafeExamBrowser.Contracts.Communication.Messages;
using SafeExamBrowser.Contracts.Communication.Responses;
using SafeExamBrowser.Contracts.Communication.Data;
using SafeExamBrowser.Contracts.Configuration;
namespace SafeExamBrowser.Contracts.Communication

View file

@ -6,9 +6,9 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
using SafeExamBrowser.Contracts.Communication.Responses;
using SafeExamBrowser.Contracts.Communication.Data;
namespace SafeExamBrowser.Contracts.Communication
namespace SafeExamBrowser.Contracts.Communication.Proxies
{
/// <summary>
/// Defines the functionality for a proxy to the communication host of the client application component.

View file

@ -6,7 +6,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
namespace SafeExamBrowser.Contracts.Communication
namespace SafeExamBrowser.Contracts.Communication.Proxies
{
/// <summary>
/// A factory to create communication proxies during application runtime.

View file

@ -6,7 +6,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
namespace SafeExamBrowser.Contracts.Communication
namespace SafeExamBrowser.Contracts.Communication.Proxies
{
/// <summary>
/// A factory to create communication objects for proxies.

View file

@ -8,7 +8,7 @@
using SafeExamBrowser.Contracts.Configuration;
namespace SafeExamBrowser.Contracts.Communication
namespace SafeExamBrowser.Contracts.Communication.Proxies
{
/// <summary>
/// Defines the functionality for a proxy to the communication host of the runtime application component.

View file

@ -9,7 +9,7 @@
using System;
using SafeExamBrowser.Contracts.Configuration.Settings;
namespace SafeExamBrowser.Contracts.Communication
namespace SafeExamBrowser.Contracts.Communication.Proxies
{
/// <summary>
/// Defines the functionality for a proxy to the communication host of the service application component.

View file

@ -7,7 +7,7 @@
*/
using System;
using SafeExamBrowser.Contracts.Communication;
using SafeExamBrowser.Contracts.Communication.Proxies;
using SafeExamBrowser.Contracts.WindowsApi;
namespace SafeExamBrowser.Contracts.Configuration

View file

@ -57,29 +57,29 @@
<Compile Include="Behaviour\IRuntimeController.cs" />
<Compile Include="Behaviour\OperationModel\IOperationSequence.cs" />
<Compile Include="Behaviour\OperationModel\OperationResult.cs" />
<Compile Include="Communication\IClientHost.cs" />
<Compile Include="Communication\Hosts\IClientHost.cs" />
<Compile Include="Communication\ICommunication.cs" />
<Compile Include="Communication\IClientProxy.cs" />
<Compile Include="Communication\Proxies\IClientProxy.cs" />
<Compile Include="Communication\ICommunicationHost.cs" />
<Compile Include="Communication\ICommunicationProxy.cs" />
<Compile Include="Communication\IProxyObjectFactory.cs" />
<Compile Include="Communication\IProxyFactory.cs" />
<Compile Include="Communication\IRuntimeHost.cs" />
<Compile Include="Communication\IRuntimeProxy.cs" />
<Compile Include="Communication\IServiceProxy.cs" />
<Compile Include="Communication\Messages\Message.cs" />
<Compile Include="Communication\Messages\DisconnectionMessage.cs" />
<Compile Include="Communication\Messages\ReconfigurationMessage.cs" />
<Compile Include="Communication\Messages\SimpleMessagePurport.cs" />
<Compile Include="Communication\Messages\SimpleMessage.cs" />
<Compile Include="Communication\Responses\AuthenticationResponse.cs" />
<Compile Include="Communication\Responses\ConfigurationResponse.cs" />
<Compile Include="Communication\Responses\ConnectionResponse.cs" />
<Compile Include="Communication\Responses\DisconnectionResponse.cs" />
<Compile Include="Communication\Responses\ReconfigurationResponse.cs" />
<Compile Include="Communication\Responses\Response.cs" />
<Compile Include="Communication\Responses\SimpleResponsePurport.cs" />
<Compile Include="Communication\Responses\SimpleResponse.cs" />
<Compile Include="Communication\Proxies\IProxyObjectFactory.cs" />
<Compile Include="Communication\Proxies\IProxyFactory.cs" />
<Compile Include="Communication\Hosts\IRuntimeHost.cs" />
<Compile Include="Communication\Proxies\IRuntimeProxy.cs" />
<Compile Include="Communication\Proxies\IServiceProxy.cs" />
<Compile Include="Communication\Data\Message.cs" />
<Compile Include="Communication\Data\DisconnectionMessage.cs" />
<Compile Include="Communication\Data\ReconfigurationMessage.cs" />
<Compile Include="Communication\Data\SimpleMessagePurport.cs" />
<Compile Include="Communication\Data\SimpleMessage.cs" />
<Compile Include="Communication\Data\AuthenticationResponse.cs" />
<Compile Include="Communication\Data\ConfigurationResponse.cs" />
<Compile Include="Communication\Data\ConnectionResponse.cs" />
<Compile Include="Communication\Data\DisconnectionResponse.cs" />
<Compile Include="Communication\Data\ReconfigurationResponse.cs" />
<Compile Include="Communication\Data\Response.cs" />
<Compile Include="Communication\Data\SimpleResponsePurport.cs" />
<Compile Include="Communication\Data\SimpleResponse.cs" />
<Compile Include="Configuration\ClientConfiguration.cs" />
<Compile Include="Configuration\RuntimeInfo.cs" />
<Compile Include="Configuration\ISessionData.cs" />

View file

@ -7,9 +7,8 @@
*/
using System;
using SafeExamBrowser.Contracts.Communication;
using SafeExamBrowser.Contracts.Communication.Messages;
using SafeExamBrowser.Contracts.Communication.Responses;
using SafeExamBrowser.Contracts.Communication.Data;
using SafeExamBrowser.Contracts.Communication.Proxies;
using SafeExamBrowser.Contracts.Logging;
using SafeExamBrowser.Core.Communication;

View file

@ -11,8 +11,8 @@ using System.ServiceModel;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Moq;
using SafeExamBrowser.Contracts.Communication;
using SafeExamBrowser.Contracts.Communication.Messages;
using SafeExamBrowser.Contracts.Communication.Responses;
using SafeExamBrowser.Contracts.Communication.Data;
using SafeExamBrowser.Contracts.Communication.Proxies;
using SafeExamBrowser.Contracts.Logging;
namespace SafeExamBrowser.Core.UnitTests.Communication

View file

@ -10,8 +10,7 @@ using System;
using System.ServiceModel;
using System.Threading;
using SafeExamBrowser.Contracts.Communication;
using SafeExamBrowser.Contracts.Communication.Messages;
using SafeExamBrowser.Contracts.Communication.Responses;
using SafeExamBrowser.Contracts.Communication.Data;
using SafeExamBrowser.Contracts.Logging;
namespace SafeExamBrowser.Core.Communication

View file

@ -10,8 +10,8 @@ using System;
using System.ServiceModel;
using System.Timers;
using SafeExamBrowser.Contracts.Communication;
using SafeExamBrowser.Contracts.Communication.Messages;
using SafeExamBrowser.Contracts.Communication.Responses;
using SafeExamBrowser.Contracts.Communication.Data;
using SafeExamBrowser.Contracts.Communication.Proxies;
using SafeExamBrowser.Contracts.Logging;
namespace SafeExamBrowser.Core.Communication

View file

@ -7,9 +7,8 @@
*/
using System.ServiceModel;
using SafeExamBrowser.Contracts.Communication;
using SafeExamBrowser.Contracts.Communication.Messages;
using SafeExamBrowser.Contracts.Communication.Responses;
using SafeExamBrowser.Contracts.Communication.Data;
using SafeExamBrowser.Contracts.Communication.Proxies;
using SafeExamBrowser.Contracts.Logging;
namespace SafeExamBrowser.Core.Communication

View file

@ -8,6 +8,7 @@
using System.ServiceModel;
using SafeExamBrowser.Contracts.Communication;
using SafeExamBrowser.Contracts.Communication.Proxies;
namespace SafeExamBrowser.Core.Communication
{

View file

@ -7,9 +7,8 @@
*/
using System.ServiceModel;
using SafeExamBrowser.Contracts.Communication;
using SafeExamBrowser.Contracts.Communication.Messages;
using SafeExamBrowser.Contracts.Communication.Responses;
using SafeExamBrowser.Contracts.Communication.Data;
using SafeExamBrowser.Contracts.Communication.Proxies;
using SafeExamBrowser.Contracts.Configuration;
using SafeExamBrowser.Contracts.Logging;

View file

@ -7,7 +7,7 @@
*/
using System;
using SafeExamBrowser.Contracts.Communication;
using SafeExamBrowser.Contracts.Communication.Proxies;
using SafeExamBrowser.Contracts.Configuration.Settings;
using SafeExamBrowser.Contracts.Logging;

View file

@ -10,7 +10,7 @@ using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Moq;
using SafeExamBrowser.Contracts.Behaviour.OperationModel;
using SafeExamBrowser.Contracts.Communication;
using SafeExamBrowser.Contracts.Communication.Proxies;
using SafeExamBrowser.Contracts.Configuration;
using SafeExamBrowser.Contracts.Configuration.Settings;
using SafeExamBrowser.Contracts.I18n;

View file

@ -8,7 +8,7 @@
using System;
using SafeExamBrowser.Contracts.Behaviour.OperationModel;
using SafeExamBrowser.Contracts.Communication;
using SafeExamBrowser.Contracts.Communication.Proxies;
using SafeExamBrowser.Contracts.Configuration;
using SafeExamBrowser.Contracts.Configuration.Settings;
using SafeExamBrowser.Contracts.I18n;

View file

@ -9,7 +9,8 @@
using System;
using SafeExamBrowser.Contracts.Behaviour;
using SafeExamBrowser.Contracts.Behaviour.OperationModel;
using SafeExamBrowser.Contracts.Communication;
using SafeExamBrowser.Contracts.Communication.Hosts;
using SafeExamBrowser.Contracts.Communication.Proxies;
using SafeExamBrowser.Contracts.Configuration;
using SafeExamBrowser.Contracts.Configuration.Settings;
using SafeExamBrowser.Contracts.I18n;

View file

@ -9,6 +9,8 @@
using System.Threading;
using SafeExamBrowser.Contracts.Behaviour.OperationModel;
using SafeExamBrowser.Contracts.Communication;
using SafeExamBrowser.Contracts.Communication.Hosts;
using SafeExamBrowser.Contracts.Communication.Proxies;
using SafeExamBrowser.Contracts.Configuration;
using SafeExamBrowser.Contracts.I18n;
using SafeExamBrowser.Contracts.Logging;

View file

@ -6,7 +6,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
using SafeExamBrowser.Contracts.Communication;
using SafeExamBrowser.Contracts.Communication.Proxies;
using SafeExamBrowser.Contracts.Logging;
using SafeExamBrowser.Core.Communication;
using SafeExamBrowser.Core.Logging;

View file

@ -9,8 +9,8 @@
using System;
using System.Threading.Tasks;
using SafeExamBrowser.Contracts.Communication;
using SafeExamBrowser.Contracts.Communication.Messages;
using SafeExamBrowser.Contracts.Communication.Responses;
using SafeExamBrowser.Contracts.Communication.Data;
using SafeExamBrowser.Contracts.Communication.Hosts;
using SafeExamBrowser.Contracts.Configuration;
using SafeExamBrowser.Contracts.Configuration.Settings;
using SafeExamBrowser.Contracts.Logging;