示例#1
0
    public async Task <IEnumerable <string> > GetValues()
    {
        await Task.Delay(20);

        var list = new List <string>();

        list.Add(Principal.GetPrincipal().ToPrincipalInfo());

        list.AddRange(await _service2.GetValues());

        list.Add(Principal.GetPrincipal().ToPrincipalInfo());

        await Task.Delay(20);

        return(list);
    }