comparison Agendas/trunk/src/Agendas.Web/PublicadoresConfig.cs @ 128:1e47bf408073

Asignacion de los publicadores configurados en web.config al factory de agenda (mediante CompositePublicador)
author jorge.rowies
date Mon, 04 Jul 2011 20:00:51 -0300
parents 3700b77ed455
children
comparison
equal deleted inserted replaced
127:3700b77ed455 128:1e47bf408073
13 public string Name 13 public string Name
14 { 14 {
15 get { return (string)this["name"]; } 15 get { return (string)this["name"]; }
16 } 16 }
17 17
18 [ConfigurationProperty("type", IsRequired = true)] 18 [ConfigurationProperty("componentKey", IsRequired = true)]
19 public string Type 19 public string ComponentKey
20 { 20 {
21 get 21 get
22 { 22 {
23 return (string)this["type"]; 23 return (string)this["componentKey"];
24 } 24 }
25 }
26
27 public Type GetPublicadorType()
28 {
29 return System.Type.GetType((string) this["type"]);
30 } 25 }
31 26
32 [ConfigurationProperty("enabled", IsRequired = true)] 27 [ConfigurationProperty("enabled", IsRequired = true)]
33 public bool Enabled 28 public bool Enabled
34 { 29 {