@message
@code { private RobotModel robotModel = new() { AxisSelection = Axis.Left }; private string? message; private void HandleValidSubmit() { Logger.LogInformation("HandleValidSubmit called"); var result = HandGesture.ThumbUp(robotModel.AxisSelection, Logger); message = $"ThumbUp returned {result} at {DateTime.Now}."; } public class RobotModel { public Axis AxisSelection { get; set; } } } ``` :::moniker-end :::moniker range=">= aspnetcore-6.0 < aspnetcore-8.0" ```razor @page "/robot" @using Microsoft.AspNetCore.Components.Forms @using Microsoft.Extensions.Logging @inject ILogger@message
@code { private RobotModel robotModel = new() { AxisSelection = Axis.Left }; private string? message; private void HandleValidSubmit() { Logger.LogInformation("HandleValidSubmit called"); var result = HandGesture.ThumbUp(robotModel.AxisSelection, Logger); message = $"ThumbUp returned {result} at {DateTime.Now}."; } public class RobotModel { public Axis AxisSelection { get; set; } } } ``` :::moniker-end :::moniker range="< aspnetcore-6.0" ```razor @page "/robot" @using Microsoft.AspNetCore.Components.Forms @using Microsoft.Extensions.Logging @inject ILogger@message
@code { private RobotModel robotModel = new RobotModel() { AxisSelection = Axis.Left }; private string message; private void HandleValidSubmit() { Logger.LogInformation("HandleValidSubmit called"); var result = HandGesture.ThumbUp(robotModel.AxisSelection, Logger); message = $"ThumbUp returned {result} at {DateTime.Now}."; } public class RobotModel { public Axis AxisSelection { get; set; } } } ``` :::moniker-end In the `LazyLoadTest` project, create a project reference for the `GrantImaharaRobotControls` RCL: * Visual Studio: Right-click the `LazyLoadTest` project and select **Add** > **Project Reference** to add a project reference for the `GrantImaharaRobotControls` RCL. * Visual Studio Code/.NET CLI: Execute `dotnet add reference {PATH}` in a command shell from the project's folder. The `{PATH}` placeholder is the path to the RCL project. Specify the RCL's assembly for lazy loading in the `LazyLoadTest` app's project file (`.csproj`): ```xmlLoading the requested page…
Sorry, there's nothing at this address.
Loading the requested page…
Sorry, there's nothing at this address.