public override void Start() { EventManager eventManager = Service.EventManager; eventManager.SendEvent(EventId.InitialLoadStart, null); GetContentCommand getContentCommand = new GetContentCommand(new GetContentRequest { PlayerId = Service.CurrentPlayer.PlayerId }); getContentCommand.AddSuccessCallback(new AbstractCommand <GetContentRequest, GetContentResponse> .OnSuccessCallback(this.OnCommandComplete)); Service.ServerAPI.Async(getContentCommand); }
public Task <IActionResult> GetAsync( [FromServices] GetContentCommand command, [FromQuery] ContentOptionFilter contentOptionFilter, CancellationToken cancellationToken) => command.ExecuteAsync(contentOptionFilter, cancellationToken);