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

더 자세히 ...

Public 멤버 함수

DreamineBlazorServerHostOptions AddPhysicalStaticFiles (string physicalPath, string requestPath)

속성

int Port = 5000 [get, set]
string InstanceId = Guid.NewGuid().ToString("N") [get]
bool ListenAnyIp [get, set]
string Host = "localhost" [get, set]
string ContentRootPath = AppContext.BaseDirectory [get, set]
bool AutoRegisterViewModels = true [get, set]
IList< Type > SharedServiceTypes = new List<Type>() [get]
bool AllowDisposableSharedServices [get, set]
bool UseEmbeddedWebView = true [get, set]
Action< IServiceCollection >? ConfigureServices [get, set]
Action< WebApplication >? ConfigurePipeline [get, set]
Action< WebApplication >? ConfigurePipelineAfterRouting [get, set]

상세한 설명

WPF 프로세스 내부에 Blazor Server 엔드포인트를 호스팅하는 옵션을 나타냅니다.

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

멤버 함수 문서화

◆ AddPhysicalStaticFiles()

DreamineBlazorServerHostOptions Dreamine.Hybrid.Wpf.Hosting.DreamineBlazorServerHostOptions.AddPhysicalStaticFiles ( string physicalPath,
string requestPath )
inline

물리 디렉터리를 지정한 요청 경로의 추가 정적 파일 공급자로 등록합니다.

매개변수
physicalPath제공할 물리 디렉터리 경로입니다.
requestPath정적 파일을 노출할 요청 경로입니다.
반환값
연속 구성을 위한 현재 옵션 인스턴스입니다.

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

187 {
188 var prev = ConfigurePipeline;
189 ConfigurePipeline = app =>
190 {
191 prev?.Invoke(app);
192 System.IO.Directory.CreateDirectory(physicalPath);
193 app.UseStaticFiles(new Microsoft.AspNetCore.Builder.StaticFileOptions
194 {
195 FileProvider = new Microsoft.Extensions.FileProviders.PhysicalFileProvider(physicalPath),
196 RequestPath = requestPath
197 });
198 };
199 return this;
200 }

다음을 참조함 : ConfigurePipeline.

속성 문서화

◆ AllowDisposableSharedServices

bool Dreamine.Hybrid.Wpf.Hosting.DreamineBlazorServerHostOptions.AllowDisposableSharedServices
getset

해제 가능한 공유 서비스 인스턴스를 Blazor Server 컨테이너에 등록할 수 있는지 여부를 가져오거나 설정합니다.

해제 가능한 공유 서비스 인스턴스를 Blazor Server 컨테이너에 등록할 수 있는지 여부를 가져오거나 설정합니다.

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

104{ get; set; }

◆ AutoRegisterViewModels

bool Dreamine.Hybrid.Wpf.Hosting.DreamineBlazorServerHostOptions.AutoRegisterViewModels = true
getset

공개 ViewModel 클래스를 자동 등록할지 여부를 가져오거나 설정합니다.

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

76{ get; set; } = true;

◆ ConfigurePipeline

Action<WebApplication>? Dreamine.Hybrid.Wpf.Hosting.DreamineBlazorServerHostOptions.ConfigurePipeline
getset

기본 파이프라인이 구성된 뒤 호출되는 선택적 콜백을 가져오거나 설정합니다. 추가 미들웨어나 정적 파일 공급자를 등록하는 데 사용합니다.

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

142{ get; set; }

다음에 의해서 참조됨 : AddPhysicalStaticFiles().

◆ ConfigurePipelineAfterRouting

Action<WebApplication>? Dreamine.Hybrid.Wpf.Hosting.DreamineBlazorServerHostOptions.ConfigurePipelineAfterRouting
getset

UseRouting 직후와 UseAntiforgery 전에 호출되는 선택적 콜백을 가져오거나 설정합니다. UseAuthorization 같은 엔드포인트 라우팅 의존 미들웨어를 추가합니다.

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

152{ get; set; }

◆ ConfigureServices

Action<IServiceCollection>? Dreamine.Hybrid.Wpf.Hosting.DreamineBlazorServerHostOptions.ConfigureServices
getset

Blazor Server 호스트를 빌드하기 전에 호출되는 선택적 콜백을 가져오거나 설정합니다. 서버 DI 컨테이너에 Scoped 또는 Transient 서비스를 등록하는 데 사용합니다.

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

132{ get; set; }

◆ ContentRootPath

string Dreamine.Hybrid.Wpf.Hosting.DreamineBlazorServerHostOptions.ContentRootPath = AppContext.BaseDirectory
getset

포함된 Blazor Server 호스트의 콘텐츠 루트 경로를 가져오거나 설정합니다.

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

66{ get; set; } = AppContext.BaseDirectory;

◆ Host

string Dreamine.Hybrid.Wpf.Hosting.DreamineBlazorServerHostOptions.Host = "localhost"
getset

P:Dreamine.Hybrid.Wpf.Hosting.DreamineBlazorServerHostOptions.ListenAnyIp가 false일 때 사용할 호스트 이름을 가져오거나 설정합니다.

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

56{ get; set; } = "localhost";

◆ InstanceId

string Dreamine.Hybrid.Wpf.Hosting.DreamineBlazorServerHostOptions.InstanceId = Guid.NewGuid().ToString("N")
get

현재 프로세스 내부 서버 인스턴스의 고유 ID를 가져옵니다.

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

36{ get; } = Guid.NewGuid().ToString("N");

◆ ListenAnyIp

bool Dreamine.Hybrid.Wpf.Hosting.DreamineBlazorServerHostOptions.ListenAnyIp
getset

Kestrel이 모든 네트워크 인터페이스에서 수신할지 여부를 가져오거나 설정합니다.

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

46{ get; set; }

◆ Port

int Dreamine.Hybrid.Wpf.Hosting.DreamineBlazorServerHostOptions.Port = 5000
getset

포함된 Blazor Server 호스트의 수신 포트를 가져오거나 설정합니다.

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

26{ get; set; } = 5000;

◆ SharedServiceTypes

IList<Type> Dreamine.Hybrid.Wpf.Hosting.DreamineBlazorServerHostOptions.SharedServiceTypes = new List<Type>()
get

WPF 루트 공급자에서 Blazor Server 호스트로 공유할 서비스 형식 목록을 가져옵니다.

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

86{ get; } = new List<Type>();

◆ UseEmbeddedWebView

bool Dreamine.Hybrid.Wpf.Hosting.DreamineBlazorServerHostOptions.UseEmbeddedWebView = true
getset

WPF 셸이 포함된 WebView2 컨트롤을 호스팅할지 여부를 가져오거나 설정합니다.

WPF 셸이 포함된 WebView2 컨트롤을 호스팅할지 여부를 가져오거나 설정합니다.

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

122{ get; set; } = true;

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