Update of /cvsroot/csmail/csmail/src/CSMail
In directory usw-pr-cvs1:/tmp/cvs-serv19506
Modified Files:
ChangeLog Service.cs Session.cs
Log Message:
2002-09-10
* Service.cs : Close() - Implemented
: OnConnection(...) - Removed TODO.
* Session.cs : GetServiceInstance(...)
- Started off?
Index: ChangeLog
===================================================================
RCS file: /cvsroot/csmail/csmail/src/CSMail/ChangeLog,v
retrieving revision 1.34
retrieving revision 1.35
diff -u -r1.34 -r1.35
--- ChangeLog 9 Sep 2002 11:07:22 -0000 1.34
+++ ChangeLog 10 Sep 2002 10:43:37 -0000 1.35
@@ -1,4 +1,11 @@
+2002-09-10 Gaurav Vaish <mastergaurav AT users DOT sf DOT net>
+
+ * Service.cs : Close() - Implemented
+ : OnConnection(...) - Removed TODO.
+ * Session.cs : GetServiceInstance(...)
+ - Started off?
+
2002-09-09 Gaurav Vaish <mastergaurav AT users DOT sf DOT net>
* MimeMessage.cs : Stubbed new class.
Index: Service.cs
===================================================================
RCS file: /cvsroot/csmail/csmail/src/CSMail/Service.cs,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- Service.cs 6 Sep 2002 11:52:29 -0000 1.6
+++ Service.cs 10 Sep 2002 10:43:37 -0000 1.7
@@ -97,10 +97,10 @@
/// <summary>
/// Closes an open connection.
/// </summary>
- [MailTODO]
public virtual void Close()
{
- throw new NotImplementedException();
+ this.connected = false;
+ OnConnection(new ConnectionEventArgs(ConnectionEventType.Closed));
}
/// <summary>
@@ -216,13 +216,11 @@
/// Raises the <see cref="Connection"/> event.
/// </summary>
/// <param name="e">The required arguments to raise the event.</param>
- [MailTODO]
public void OnConnection(ConnectionEventArgs e)
{
ConnectionEventHandler ceh = (ConnectionEventHandler)Events[ConnectionEvent];
if(ceh != null)
ceh(this, e);
- throw new NotImplementedException();
}
}
}
Index: Session.cs
===================================================================
RCS file: /cvsroot/csmail/csmail/src/CSMail/Session.cs,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -r1.15 -r1.16
--- Session.cs 3 Sep 2002 12:49:49 -0000 1.15
+++ Session.cs 10 Sep 2002 10:43:37 -0000 1.16
@@ -12,6 +12,7 @@
using System.Collections;
using System.IO;
using CSMail.Utils;
+using System.Reflection;
namespace CSMail
{
@@ -114,7 +115,6 @@
[MailTODO]
private object GetServiceInstance(URLName url, Provider provider)
{
- throw new NotImplementedException();
/**
* First, try to load using "Assembly.Load",
* and if you are unable to do so (during testing)
@@ -123,6 +123,8 @@
* as that of value of "Provider.ClassName"
* If even that fails, then throw an exception
*/
+ Assembly toLoad = Assembly.Load(provider.AssemblyName);
+ throw new NotImplementedException();
}
private Session(Properties properties, Authenticator authenticator)
|