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