locked
the event sequence for page RRS feed

  • Question

  • User2076108182 posted

    Hi

    in rasor page ,what happens for page.Can you tell me the sequence for page 

    Ex:

     protected override async Task OnInitializedAsync()
        {
            watch = Stopwatch.StartNew();
            var uri = $"WeatherForecast?num={para.Num}";
            forecasts = await Http.GetJsonAsync<WeatherForecast[]>(uri);
            watch.Stop();
            wastTime = string.Format($"{watch.Elapsed.Hours}小时{watch.Elapsed.Minutes}分钟{watch.Elapsed.Seconds}秒");
        }
    
        protected override Task OnAfterRenderAsync(bool firstRender)
        {
            return base.OnAfterRenderAsync(firstRender);
        }
    
        protected override void OnInitialized()
        {
            base.OnInitialized();
        }
    
        protected override void OnAfterRender(bool firstRender)
        {
            base.OnAfterRender(firstRender);
        }
    
        protected override void BuildRenderTree(RenderTreeBuilder builder)
        {
            base.BuildRenderTree(builder);
        }
    
        protected override void OnParametersSet()
        {
            base.OnParametersSet();
        }
    
        protected override Task OnParametersSetAsync()
        {
            return base.OnParametersSetAsync();
        }
    
        protected override bool ShouldRender()
        {
            return base.ShouldRender();
        }

    the order for these events ?
    Thanks for your help

    Friday, October 11, 2019 4:17 AM

Answers