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(); }
public void Initialize(IPfConfiguration configuration) { MainThreadId = configuration.Get <int>("AppEntryContext.MainThreadId"); ConnectionString = configuration.Get <string>("AppEntryContext.ConnectionString"); }
public void Initialize(IPfConfiguration configuration) { RabbitMQConnectionString = configuration.Get <string>("AppBaseContext.RabbitMQConnectionString"); Scope = configuration.Get <string>("Scope", () => Guid.NewGuid().ToString("N")); }
public void Initialize(IPfConfiguration configuration) { Field1 = configuration.Get <string>("AppSampleContext.Field1", () => ""); }