public Task BuildAsync(IEntityBuilder builder) { var descriptor = this._endpointDescriptorProvider.GetEndpointDescriptor(this._capturedExpression, this._claimsPrincipal); if (descriptor == null) { return(Task.CompletedTask); } var method = descriptor.Method; var href = this._hrefFactory.MakeHref(descriptor); if (method == "GET") { builder.WithEntity(new Entity(this._classes, href)); } return(Task.CompletedTask); }