You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Components/Web.JS/src/Boot.Server.Common.ts
+15Lines changed: 15 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -67,6 +67,20 @@ async function startServerCore(components: RootComponentManager<ServerComponentD
67
67
returntrue;
68
68
};
69
69
70
+
Blazor.pause=async()=>{
71
+
if(circuit.didRenderingFail()){
72
+
// We can't pause after a failure, so exit early.
73
+
returnfalse;
74
+
}
75
+
76
+
if(!(awaitcircuit.pause())){
77
+
logger.log(LogLevel.Information,'Pause attempt to the circuit was rejected by the server. This may indicate that the associated state is no longer available on the server.');
78
+
returnfalse;
79
+
}
80
+
81
+
returntrue;
82
+
};
83
+
70
84
Blazor.resume=async()=>{
71
85
if(circuit.didRenderingFail()){
72
86
// We can't resume after a failure, so exit early.
@@ -81,6 +95,7 @@ async function startServerCore(components: RootComponentManager<ServerComponentD
0 commit comments