public override Task <StringMessage> GetAppSettingsTemplate(StringMessage request, ServerCallContext context) { if (_registry.TryGetValue(request.Data, out var app)) { return(Task.FromResult(new StringMessage { Data = app.ParametersTemplate })); } throw new InvalidOperationException($"App {request.Data} not found"); }
internal static void Select(string name) { if (_registry.TryGetValue(name, out var app)) { SelectedApp = app; } else { throw new InvalidOperationException($"app \"{name}\" not found"); } }