コード例 #1
0
ファイル: RegularConfigSource.cs プロジェクト: hjlfmy/Apworks
 /// <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();
 }
コード例 #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();
 }
コード例 #3
0
ファイル: AppConfigSource.cs プロジェクト: yufc/Apworks
 private void LoadConfig(string configSection)
 {
     this.config = (ApworksConfigSection)ConfigurationManager.GetSection(configSection);
 }
コード例 #4
0
ファイル: AppConfigSource.cs プロジェクト: WuLex/Apworks
 private void LoadConfig(string configSection)
 {
     this.config = (ApworksConfigSection)ConfigurationManager.GetSection(configSection);
 }