[Mono-list] Short news...

Patrik Torstensson totte@labs2.com
Wed, 10 Apr 2002 22:14:42 +0200


This is a multi-part message in MIME format.

------_=_NextPart_001_01C1E0CC.595A4E39
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

Or should I say Great News,

This is just a mail to keep all you that doesn't subscribe to the
mono-cvs list updated. Today, I checked in a number of classes from the
System.Web into the CVS storage, what this means is that we support the
following code:

   public class HelloWorldHandler : IHttpHandler {
      bool IHttpHandler.IsReusable {
         get {
            return false;
         }
      }

      void IHttpHandler.ProcessRequest(HttpContext context) {
         context.Response.Write("Hello World from the HelloWorldHandler
via Mono ASP.Net runtime\r\n");
      }
   }

   class HostTest : MarshalByRefObject {
      private HelloWorldHandler _HelloWorldHandler;

      public HostTest() {
         _HelloWorldHandler =3D new HelloWorldHandler();
         HttpRuntime.Handler =3D _HelloWorldHandler;
      }

      public void TestRequest() {
         // Execute one request
         SimpleWorkerRequest oReq  =3D new
SimpleWorkerRequest("/test.aspx", "none=3D1", Console.Out);

         HttpRuntime.ProcessRequest(oReq);
      }

   };

   class ConsoleTest {
      static void Main(string[] args) {
         // init the app framework
         HostTest oHost =3D (HostTest)
ApplicationHost.CreateApplicationHost(typeof(HostTest),"/", "c:\\temp");

         oHost.TestRequest();
        =20
      }
   }

And this results in the following output:

Hello World from the HelloWorldHandler via Mono ASP.Net runtime Press
any key to continue

Summary:

35+ classes and a huge amount of work has now resulted in that the basic
framework works, it doesn't support HttpModules or multiple HttpHandlers
but I can now start find bugs and then add the async runtime support.

I haven't been this happy about a simple console output before ;-)

So, the next Mono release will contain a basic ASP.Net runtime support
and please, start testing and playing with the code... I will work on
the basic web server now and that will take us one step closer to
getting a more real enviroment up and running.

Cheers,
 Patrik Torstensson
=20


------_=_NextPart_001_01C1E0CC.595A4E39
Content-Type: text/html;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
6.0.5762.3">
<TITLE>Short news...</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->

<P><FONT SIZE=3D2 FACE=3D"Verdana">Or should I say Great News,</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Verdana">This is just a mail to keep all you =
that doesn't subscribe to the mono-cvs list updated. Today, I checked in =
a number of classes from the System.Web into the CVS storage, what this =
means is that we support the following code:</FONT></P>

<P><FONT SIZE=3D2 FACE=3D"Verdana">&nbsp;&nbsp; public class =
HelloWorldHandler : IHttpHandler {</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Verdana">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; bool =
IHttpHandler.IsReusable {</FONT>

<BR><FONT SIZE=3D2 =
FACE=3D"Verdana">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; get =
{</FONT>

<BR><FONT SIZE=3D2 =
FACE=3D"Verdana">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp; return false;</FONT>

<BR><FONT SIZE=3D2 =
FACE=3D"Verdana">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
}</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Verdana">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
}</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Verdana">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; void =
IHttpHandler.ProcessRequest(HttpContext context) {</FONT>

<BR><FONT SIZE=3D2 =
FACE=3D"Verdana">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
context.Response.Write(&quot;Hello World from the HelloWorldHandler via =
Mono ASP.Net runtime\r\n&quot;);</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Verdana">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
}</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Verdana">&nbsp;&nbsp; }</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Verdana">&nbsp;&nbsp; class HostTest : =
MarshalByRefObject {</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Verdana">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
private HelloWorldHandler _HelloWorldHandler;</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Verdana">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; public =
HostTest() {</FONT>

<BR><FONT SIZE=3D2 =
FACE=3D"Verdana">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
_HelloWorldHandler =3D new HelloWorldHandler();</FONT>

<BR><FONT SIZE=3D2 =
FACE=3D"Verdana">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
HttpRuntime.Handler =3D _HelloWorldHandler;</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Verdana">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
}</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Verdana">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; public =
void TestRequest() {</FONT>

<BR><FONT SIZE=3D2 =
FACE=3D"Verdana">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // =
Execute one request</FONT>

<BR><FONT SIZE=3D2 =
FACE=3D"Verdana">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
SimpleWorkerRequest oReq&nbsp; =3D new =
SimpleWorkerRequest(&quot;/test.aspx&quot;, &quot;none=3D1&quot;, =
Console.Out);</FONT>
</P>

<P><FONT SIZE=3D2 =
FACE=3D"Verdana">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
HttpRuntime.ProcessRequest(oReq);</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Verdana">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
}</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Verdana">&nbsp;&nbsp; };</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Verdana">&nbsp;&nbsp; class ConsoleTest =
{</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Verdana">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
static void Main(string[] args) {</FONT>

<BR><FONT SIZE=3D2 =
FACE=3D"Verdana">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // =
init the app framework</FONT>

<BR><FONT SIZE=3D2 =
FACE=3D"Verdana">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
HostTest oHost =3D (HostTest) =
ApplicationHost.CreateApplicationHost(typeof(HostTest),&quot;/&quot;, =
&quot;c:\\temp&quot;);</FONT>
</P>

<P><FONT SIZE=3D2 =
FACE=3D"Verdana">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
oHost.TestRequest();</FONT>

<BR><FONT SIZE=3D2 =
FACE=3D"Verdana">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Verdana">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
}</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Verdana">&nbsp;&nbsp; }</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Verdana">And this results in the following =
output:</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Verdana">Hello World from the =
HelloWorldHandler via Mono ASP.Net runtime Press any key to =
continue</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Verdana">Summary:</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Verdana">35+ classes and a huge amount of work =
has now resulted in that the basic framework works, it doesn't support =
HttpModules or multiple HttpHandlers but I can now start find bugs and =
then add the async runtime support.</FONT></P>

<P><FONT SIZE=3D2 FACE=3D"Verdana">I haven't been this happy about a =
simple console output before ;-)</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Verdana">So, the next Mono release will =
contain a basic ASP.Net runtime support and please, start testing and =
playing with the code... I will work on the basic web server now and =
that will take us one step closer to getting a more real enviroment up =
and running.</FONT></P>

<P><FONT SIZE=3D2 FACE=3D"Verdana">Cheers,</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Verdana">&nbsp;Patrik Torstensson</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Verdana">&nbsp;</FONT>
</P>

</BODY>
</HTML>
------_=_NextPart_001_01C1E0CC.595A4E39--