/// <summary> /// Checks whether specified platform is available. /// </summary> public override Task <IsPlatformAvailableResponse> IsPlatformAvailable( IsPlatformAvailableRequest request, ServerCallContext context) { SbDebuggerPreconditionCheck(); bool result = sbDebugger.IsPlatformAvailable(request.PlatformName); var response = new IsPlatformAvailableResponse { Result = result }; return(Task.FromResult(response)); }
SbPlatform CreateRemotePlatform(GrpcConnection grpcConnection, SbDebugger debugger) { string platformName; if (debugger.IsPlatformAvailable(_remoteLldbPlatformName)) { _stadiaPlatformAvailable = true; platformName = _remoteLldbPlatformName; } else { platformName = _fallbackRemoteLldbPlatformName; } return(_lldbPlatformFactory.Create(platformName, grpcConnection)); }