2013-01-18 15:55:50 +00:00
|
|
|
using System;
|
2014-01-08 14:16:39 +00:00
|
|
|
namespace AsterNET.FastAGI.Command
|
2013-01-18 15:55:50 +00:00
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// Sets the context for continuation upon exiting the application.
|
|
|
|
/// </summary>
|
|
|
|
public class SetContextCommand : AGICommand
|
|
|
|
{
|
|
|
|
/// <summary> The context for continuation upon exiting the application.</summary>
|
|
|
|
private string context;
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Get/Set the context for continuation upon exiting the application.
|
|
|
|
/// </summary>
|
|
|
|
public string Context
|
|
|
|
{
|
|
|
|
get { return context; }
|
|
|
|
set { this.context = value; }
|
|
|
|
}
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Creates a new SetPriorityCommand.
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="context">the context for continuation upon exiting the application.</param>
|
|
|
|
public SetContextCommand(string context)
|
|
|
|
{
|
|
|
|
this.context = context;
|
|
|
|
}
|
|
|
|
|
|
|
|
public override string BuildCommand()
|
|
|
|
{
|
|
|
|
return "SET CONTEXT " + EscapeAndQuote(context);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|