Exemplo n.º 1
0
        public void Initialize(IPfConfiguration configuration)
        {
            SystemIndex       = configuration.Get <int>("AppWebContext.SystemIndex");
            Domain            = configuration.Get <string>("AppWebContext.Domain");
            EnabledSuperAdmin = configuration.Get <bool>("AppWebContext.EnabledSuperAdmin");
            var xmlCommentTool = new XmlCommentTool(Path.Combine(AppContext.BaseDirectory, $"{Assembly.GetExecutingAssembly().GetName().Name}.xml"));

            Comments = xmlCommentTool.GetPropertySummaries();
        }
Exemplo n.º 2
0
 public void Initialize(IPfConfiguration configuration)
 {
     MainThreadId     = configuration.Get <int>("AppEntryContext.MainThreadId");
     ConnectionString = configuration.Get <string>("AppEntryContext.ConnectionString");
 }
Exemplo n.º 3
0
 public void Initialize(IPfConfiguration configuration)
 {
     RabbitMQConnectionString = configuration.Get <string>("AppBaseContext.RabbitMQConnectionString");
     Scope = configuration.Get <string>("Scope", () => Guid.NewGuid().ToString("N"));
 }
Exemplo n.º 4
0
 public void Initialize(IPfConfiguration configuration)
 {
     Field1 = configuration.Get <string>("AppSampleContext.Field1", () => "");
 }