Example #1
0
 public ChoSingletonObject()
 {
     _singletonAttribute = ChoType.GetAttribute(GetType(), typeof(ChoSingletonAttribute)) as ChoSingletonAttribute;
     if (_singletonAttribute == null)
     {
         throw new ChoFatalApplicationException("Missing singleton attribute defined for '{0}' type.".FormatString(GetType().Name));
     }
 }
Example #2
0
 public ChoSingletonObject()
 {
     _singletonAttribute = ChoType.GetAttribute(GetType(), typeof(ChoSingletonAttribute)) as ChoSingletonAttribute;
 }