Exemple #1
0
        async Task <bool> IsRuntimeAlreadyReadyAlready(SessionId sessionId, CancellationToken token)
        {
            if (contexts.TryGetValue(sessionId, out var context) && context.IsRuntimeReady)
            {
                return(true);
            }

            var res = await SendMonoCommand(sessionId, MonoCommands.IsRuntimeReady(), token);

            return(res.Value? ["result"]? ["value"]?.Value <bool> () ?? false);
        }
Exemple #2
0
        async Task <bool> IsRuntimeAlreadyReadyAlready(SessionId sessionId, CancellationToken token)
        {
            var res = await SendMonoCommand(sessionId, MonoCommands.IsRuntimeReady(), token);

            return(res.Value? ["result"]? ["value"]?.Value <bool> () ?? false);
        }