public Configuration(XmlNode node)
 {
     if (node == null)
     {
         throw new ConfigurationErrorsException("Missing configuration CodeBetter.Canvas/Web");
     }
     _connectionString = node.GetString("connectionString");
     _connectionString = MakeRelative(_connectionString);      
 }
 public AtomResponse(XmlNode content, Action<Response> configurationDelegate = null)
     : base(new Response().ApplicationAtom().Content(content.GetString()), configurationDelegate)
 {
 }
Example #3
0
	public ImdnResponse(XmlNode content, Action<Response> configurationDelegate = null)
		: base(new Response().MessageImdn().Content(content.GetString()), configurationDelegate)
	{
	}
Example #4
0
	public XmlResponse(XmlNode content, Action<Response> configurationDelegate = null)
		: base(new Response().TextXml().Content(content.GetString()), configurationDelegate)
	{
	}
Example #5
0
 public SvgResponse(XmlNode content, Action<Response> configurationDelegate = null)
     : base(new Response().ImageSvg().Content(content.GetString()), configurationDelegate)
 {
 }
Example #6
0
 public RdfResponse(XmlNode content, Action<Response> configurationDelegate = null)
     : base(Response.OK().ApplicationRdf().Content(content.GetString()), configurationDelegate)
 {
 }
Example #7
0
 public X3DXmlResponse(XmlNode content, Action<Response> configurationDelegate = null)
     : base(Response.OK().ModelX3DXml().Content(content.GetString()), configurationDelegate)
 {
 }