Dreamine.Hybrid.Wpf 1.0.3
`AddDreamineHybridWpf()` 내부에서 `AddWpfBlazorWebView()` 호출 및
로딩중...
검색중...
일치하는것 없음
Dreamine.Hybrid.Wpf.Hosting.DreamineBlazorServerServiceCollectionExtensions 클래스 참조

더 자세히 ...

정적 Public 멤버 함수

static IServiceCollection AddDreamineBlazorServer< TRootComponent > (this IServiceCollection services, Action< DreamineBlazorServerHostOptions >? configure=null)

상세한 설명

WPF 프로세스 내부 Dreamine Blazor Server 호스팅을 위한 서비스 등록 확장을 제공합니다.

DreamineBlazorServerServiceCollectionExtensions.cs 파일의 16 번째 라인에서 정의되었습니다.

멤버 함수 문서화

◆ AddDreamineBlazorServer< TRootComponent >()

IServiceCollection Dreamine.Hybrid.Wpf.Hosting.DreamineBlazorServerServiceCollectionExtensions.AddDreamineBlazorServer< TRootComponent > ( this IServiceCollection services,
Action< DreamineBlazorServerHostOptions >? configure = null )
inlinestatic

WPF 프로세스 안에서 실행될 Blazor Server 호스트를 등록합니다.

템플릿 파라메터
TRootComponent서버가 매핑할 루트 Razor 구성 요소 형식입니다.
매개변수
services호스트 서비스를 추가할 컬렉션입니다.
configure선택적 호스트 옵션 구성 콜백입니다.
반환값
연속 구성을 위한 동일한 서비스 컬렉션입니다.
예외
ArgumentNullExceptionservicesnull인 경우 발생합니다.
타입 한정자들
TRootComponent :IComponent 

DreamineBlazorServerServiceCollectionExtensions.cs 파일의 66 번째 라인에서 정의되었습니다.

69 : IComponent
70 {
71 if (services is null)
72 {
73 throw new ArgumentNullException(nameof(services));
74 }
75
76 var options = new DreamineBlazorServerHostOptions();
77 configure?.Invoke(options);
78
79 services.AddSingleton(options);
80 services.AddHostedService<DreamineBlazorServerHostedService<TRootComponent>>();
81
82 return services;
83 }

이 클래스에 대한 문서화 페이지는 다음의 파일로부터 생성되었습니다.: