Ziks.WebServer/Controller.cs
/// <summary>
/// Response writer for action methods that return a <see cref="string"/>.
/// </summary>
/// <param name="text"><see cref="string"/> to be written.</param>
Response writer for action methods that return a .
Response writer for action methods that return a .
[ResponseWriter]
        protected virtual void OnServiceText( string text )
        {
            Response.ContentType = MimeTypeMap.GetMimeType( ".txt" );
            using ( var writer = new StreamWriter( Response.OutputStream ) )
            {
                writer.WriteLine( text );
            }
        }
[ ResponseWriter ] protected virtual void OnServiceText ( string text ) { Response . ContentType = MimeTypeMap . GetMimeType ( " " ) ; using ( var writer = new StreamWriter ( Response . OutputStream ) ) { writer . WriteLine ( text ) ; } }
Response writer for action methods that return a .
Response writer for action methods that return a .
text
string
to be written.
to be written .