コード例 #1
0
        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);
        }
コード例 #2
0
 public Task <IActionResult> GetAsync(
     [FromServices] GetContentCommand command,
     [FromQuery] ContentOptionFilter contentOptionFilter,
     CancellationToken cancellationToken) => command.ExecuteAsync(contentOptionFilter, cancellationToken);