Junior.Route.Routing.Responses.Response.GetContentAsync C# (CSharp) Метод

GetContentAsync() публичный Метод

public GetContentAsync ( ) : Task
Результат Task
        public Task<byte[]> GetContentAsync()
        {
            if (_binaryContent == null && _stringContent == null)
            {
                return new byte[0].AsCompletedTask();
            }

            return Task.Run(() => _binaryContent != null ? _binaryContent() : _contentEncoding.GetBytes(_stringContent()));
        }
Response