You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
611 B
25 lines
611 B
namespace BlazorApp1
|
|
{
|
|
using Microsoft.AspNetCore.Components;
|
|
using Microsoft.Extensions.Configuration;
|
|
using Microsoft.Extensions.Options;
|
|
|
|
public partial class Config
|
|
{
|
|
[Inject]
|
|
public IConfiguration Configuration { get; set; }
|
|
|
|
[Inject]
|
|
public IOptions<PositionOptions> OptionsPositionOptions { get; set; }
|
|
|
|
private PositionOptions positionOptions;
|
|
|
|
protected override void OnInitialized()
|
|
{
|
|
base.OnInitialized();
|
|
|
|
positionOptions = OptionsPositionOptions.Value;
|
|
}
|
|
}
|
|
}
|