protected override async Task OnAfterRenderAsync(bool firstRender) { if (firstRender) { string hostname = new Uri(NavigationManager.BaseUri).Host; this.ChatHubService.IdentityCookie = new Cookie(".AspNetCore.Identity.Application", await this.CookieService.GetCookieAsync(".AspNetCore.Identity.Application"), "/", hostname); JsRuntimeObjectRef objref = await this.JSRuntime.InvokeAsync <JsRuntimeObjectRef>("__init", this.VideoService.dotNetObjectReference, this.BlazorDraggableListService.dotNetObjectReference, this.BrowserResizeService.dotNetObjectReference, this.BlazorFileUploadService.dotNetObjectReference); this.VideoService.__jsRuntimeObjectRef = objref; this.BlazorDraggableListService.__jsRuntimeObjectRef = objref; this.BrowserResizeService.__jsRuntimeObjectRef = objref; this.BlazorFileUploadService.__jsRuntimeObjectRef = objref; await this.BrowserResizeService.RegisterWindowResizeCallback(); await BrowserHasResized(); await this.JSRuntime.InvokeVoidAsync("showchathubscontainer"); } await base.OnAfterRenderAsync(firstRender); }
internal override void SetJsRuntime(IJSRuntime jsRuntime, JsRuntimeObjectRef screenRef) { base.SetJsRuntime(jsRuntime, screenRef); Orientation.SetJsRuntime(jsRuntime, screenRef); }
internal PerformanceInterop(IJSRuntime jsRuntime, JsRuntimeObjectRef windowRef) { this.jsRuntime = jsRuntime; this.windowRef = windowRef; }
internal void SetJsRuntime(IJSRuntime jsRuntime, JsRuntimeObjectRef screenRef) { this.jsRuntime = jsRuntime; this.screenRef = screenRef; }
internal void SetJSRuntime(IJSRuntime jsRuntime, JsRuntimeObjectRef windowRef) { this.jsRuntime = jsRuntime; this.windowRef = windowRef; }
internal GooglePayClient(IJSRuntime jsRuntime, JsRuntimeObjectRef jsObjectRef) { _jsRuntime = jsRuntime; _jsObjectRef = jsObjectRef; }
internal WindowStorage(IJSRuntime jsRuntime, JsRuntimeObjectRef runtimeObjectRef) { this.jsRuntime = jsRuntime; jsRuntimeObjectRef = runtimeObjectRef; }
internal WindowStorage(IJSRuntime jsRuntime, JsRuntimeObjectRef windowRuntimeObjectRef, string memberName) { this.jsRuntime = jsRuntime; this.windowRuntimeObjectRef = windowRuntimeObjectRef; this.memberName = memberName; }
internal void SetJSRuntime(IJSRuntime jsRuntime, JsRuntimeObjectRef windowRef) { this.jsRuntime = jsRuntime; this.windowRef = windowRef; this.Orientation.SetJSRuntime(jsRuntime, windowRef); }