Example #1
0
 /// <summary>
 /// Initializes a new instance of <c>RegularConfigSource</c> class.
 /// </summary>
 public RegularConfigSource()
 {
     config = new ApworksConfigSection();
     config.Application = new ApplicationElement();
     config.Exceptions = new ExceptionElementCollection();
     config.Generators = new GeneratorElement();
     config.Generators.IdentityGenerator = new IdentityGeneratorElement();
     config.Generators.SequenceGenerator = new SequenceGeneratorElement();
     config.Handlers = new HandlerElementCollection();
     config.ObjectContainer = new ObjectContainerElement();
     config.Serializers = new SerializerElement();
     config.Serializers.EventSerializer = new EventSerializerElement();
     config.Serializers.SnapshotSerializer = new SnapshotSerializerElement();
     config.Interception = new InterceptionElement();
     config.Interception.Contracts = new InterceptContractElementCollection();
     config.Interception.Interceptors = new InterceptorElementCollection();
 }
Example #2
0
 /// <summary>
 /// Initializes a new instance of <c>RegularConfigSource</c> class.
 /// </summary>
 public RegularConfigSource()
 {
     config             = new ApworksConfigSection();
     config.Application = new ApplicationElement();
     config.Exceptions  = new ExceptionElementCollection();
     config.Generators  = new GeneratorElement();
     config.Generators.IdentityGenerator = new IdentityGeneratorElement();
     config.Generators.SequenceGenerator = new SequenceGeneratorElement();
     config.Handlers                       = new HandlerElementCollection();
     config.ObjectContainer                = new ObjectContainerElement();
     config.Serializers                    = new SerializerElement();
     config.Serializers.EventSerializer    = new EventSerializerElement();
     config.Serializers.SnapshotSerializer = new SnapshotSerializerElement();
     config.Interception                   = new InterceptionElement();
     config.Interception.Contracts         = new InterceptContractElementCollection();
     config.Interception.Interceptors      = new InterceptorElementCollection();
 }
Example #3
0
 private void LoadConfig(string configSection)
 {
     this.config = (ApworksConfigSection)ConfigurationManager.GetSection(configSection);
 }
Example #4
0
 private void LoadConfig(string configSection)
 {
     this.config = (ApworksConfigSection)ConfigurationManager.GetSection(configSection);
 }