It seems like the closest thing to what you're describing would be placing the setting (device name) in the appsettings.json file, then retrieving the value by injecting IConfiguration (Microsoft.Extensions.Configuration.IConfiguration) into your blazor component.
@page "/SomePage"
@inject IConfiguration config
<div>@deviceName</div>
@code {
string deviceName;
protected override void OnInitialized()
{
deviceName = config.GetSection("DeviceName").Value;
}
}
And your appsettings.json / appsettings.Development.json would include something like this:
{
"ConnectionStrings": {
...
},
"Logging": {
...
},
"DeviceName": "01"
}
Your component could then use the specific device name when communicating with your service.