2 writes to Success
Microsoft.JSInterop (2)
Infrastructure\DotNetInvocationResult.cs (2)
21
Success
= false;
33
Success
= true;
14 references to Success
Microsoft.AspNetCore.Components.Server (1)
Circuits\RemoteJSRuntime.cs (1)
67
if (!invocationResult.
Success
)
Microsoft.AspNetCore.Components.WebView (2)
Services\WebViewJSRuntime.cs (2)
58
var resultJsonOrErrorMessage = invocationResult.
Success
61
_ipcSender.EndInvokeDotNet(invocationInfo.CallId, invocationResult.
Success
, resultJsonOrErrorMessage);
Microsoft.JSInterop.Tests (9)
Infrastructure\DotNetDispatcherTest.cs (7)
645
Assert.True(jsRuntime.LastCompletionResult.
Success
);
685
Assert.True(jsRuntime.LastCompletionResult.
Success
);
709
Assert.True(jsRuntime.LastCompletionResult.
Success
);
727
Assert.False(jsRuntime.LastCompletionResult.
Success
); // Fails
749
Assert.False(jsRuntime.LastCompletionResult.
Success
); // Fails
769
Assert.False(jsRuntime.LastCompletionResult.
Success
); // Fails
785
Assert.False(jsRuntime.LastCompletionResult.
Success
); // Fails
JSRuntimeTest.cs (2)
472
Success = invocationResult.
Success
,
474
ResultError = invocationResult.
Success
? null : new JSError(invocationInfo, invocationResult.Exception),
Microsoft.JSInterop.WebAssembly (2)
WebAssemblyJSRuntime.cs (2)
88
var resultJsonOrErrorMessage = dispatchResult.
Success
91
InternalCalls.EndInvokeDotNetFromJS(callInfo.CallId, dispatchResult.
Success
, resultJsonOrErrorMessage);