Revision: 249
http://acmcontester.svn.sourceforge.net/acmcontester/?rev=249&view=rev
Author: brus07
Date: 2008-06-15 02:36:58 -0700 (Sun, 15 Jun 2008)
Log Message:
-----------
Change for real work "WebGatePlugin"
Modified Paths:
--------------
ACMServer/trunk/ACMServer/Plugins/MediatorPlugins/WebGatePlugin/WebGatePlugin.cs
ACMServer/trunk/ACMServer/Plugins/MediatorPlugins/WebGatePlugin/WebGatePlugin.csproj
Added Paths:
-----------
ACMServer/trunk/ACMServer/Plugins/MediatorPlugins/WebGatePlugin/WebGate.cs
Added: ACMServer/trunk/ACMServer/Plugins/MediatorPlugins/WebGatePlugin/WebGate.cs
===================================================================
--- ACMServer/trunk/ACMServer/Plugins/MediatorPlugins/WebGatePlugin/WebGate.cs (rev 0)
+++ ACMServer/trunk/ACMServer/Plugins/MediatorPlugins/WebGatePlugin/WebGate.cs 2008-06-15 09:36:58 UTC (rev 249)
@@ -0,0 +1,22 @@
+using System;
+using AcmContester.Library.Connector;
+
+namespace AcmContester.Plugins.MediatorPlugins.WebGatePlugin
+{
+ /// <summary>
+ /// Pattern: Singleton
+ /// </summary>
+ class WebGate: WebConnector
+ {
+ private static WebGate instance = new WebGate();
+
+ private WebGate()
+ {
+ }
+
+ public static WebGate GetInstance()
+ {
+ return instance;
+ }
+ }
+}
Modified: ACMServer/trunk/ACMServer/Plugins/MediatorPlugins/WebGatePlugin/WebGatePlugin.cs
===================================================================
--- ACMServer/trunk/ACMServer/Plugins/MediatorPlugins/WebGatePlugin/WebGatePlugin.cs 2008-06-15 08:53:54 UTC (rev 248)
+++ ACMServer/trunk/ACMServer/Plugins/MediatorPlugins/WebGatePlugin/WebGatePlugin.cs 2008-06-15 09:36:58 UTC (rev 249)
@@ -4,30 +4,20 @@
namespace AcmContester.Plugins.MediatorPlugins.WebGatePlugin
{
- /// <summary>
- /// Pattern: Singleton
- /// </summary>
public class WebGatePlugin: BaseMediatorPlugin
{
- //private static WebGatePlugin instance = new WebGatePlugin();
+ WebGate webGate;
- private WebConnector connector = new WebConnector();
-
public WebGatePlugin()
{
- connector.onDataArrived += DataArrived;
+ webGate = WebGate.GetInstance();
+ webGate.onDataArrived += DataArrived;
}
- public static WebGatePlugin GetInstance()
- {
- return null;
- //return instance;
- }
-
public override void Send(string message)
{
WorkingData("WebGatePlugin::Send(" + message + ")");
- connector.Send(message);
+ webGate.Send(message);
}
}
}
Modified: ACMServer/trunk/ACMServer/Plugins/MediatorPlugins/WebGatePlugin/WebGatePlugin.csproj
===================================================================
--- ACMServer/trunk/ACMServer/Plugins/MediatorPlugins/WebGatePlugin/WebGatePlugin.csproj 2008-06-15 08:53:54 UTC (rev 248)
+++ ACMServer/trunk/ACMServer/Plugins/MediatorPlugins/WebGatePlugin/WebGatePlugin.csproj 2008-06-15 09:36:58 UTC (rev 249)
@@ -29,9 +29,12 @@
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
+ <Reference Include="System.Data" />
+ <Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="Properties\AssemblyInfo.cs" />
+ <Compile Include="WebGate.cs" />
<Compile Include="WebGatePlugin.cs" />
</ItemGroup>
<ItemGroup>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|