This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@page "/ElmRef" | |
<ShowChildElementReferenceIdComponent DummyValue="test"/> | |
<div @ref="divElementReferenceOfParent"></div> | |
<ShowParentElementReferenceIdComponent DummyValue="test" ParentElementReference="divElementReferenceOfParent"/> | |
@code { | |
private ElementReference divElementReferenceOfParent; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Linq; | |
using System.Reflection; | |
using System.Threading; | |
using System.Threading.Tasks; | |
using Microsoft.Extensions.DependencyInjection; | |
using Microsoft.Extensions.Hosting; | |
namespace Sample.GenericHost | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public interface IInstall | |
{ | |
void install(IServiceCollection services, IConfiguration configuration); | |
} | |
public class DbInstaller : IInstall | |
{ | |
public void install(IServiceCollection services, IConfiguration configuration) | |
{ | |
services.AddDbContext<DbContext>(opt => opt.UseSqlServer(configuration.GetConnectionString("DefaultConnection"))); |