# GrapeCity.ActiveReports.Blazor.Viewer.ReportServiceSettings.OnRequest

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_ActiveReports_Blazor_Viewer_ReportServiceSettings_OnRequest_" data-uid="GrapeCity.ActiveReports.Blazor.Viewer.ReportServiceSettings.OnRequest*">OnRequest Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_ActiveReports_Blazor_Viewer_ReportServiceSettings_OnRequest_" data-uid="GrapeCity.ActiveReports.Blazor.Viewer.ReportServiceSettings.OnRequest*"></a>
<h4 id="GrapeCity_ActiveReports_Blazor_Viewer_ReportServiceSettings_OnRequest" data-uid="GrapeCity.ActiveReports.Blazor.Viewer.ReportServiceSettings.OnRequest">OnRequest</h4>
<div class="markdown level1 summary"><p>Gets or sets a callback function that is invoked before any request is made to the Web API.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">[JsonIgnore]
public Func&lt;OnRequestInfo, OnRequestInfo&gt; OnRequest { get; set; }</code></pre>
</div>
<h5 class="propertyValue">Property Value</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.func-2">Func</a>&lt;<a class="xref" href="GrapeCity.ActiveReports.Blazor.Viewer.OnRequestInfo.html">OnRequestInfo</a>, <a class="xref" href="GrapeCity.ActiveReports.Blazor.Viewer.OnRequestInfo.html">OnRequestInfo</a>&gt;</td>
      <td><p>A function taking and returning an <a class="xref" href="GrapeCity.ActiveReports.Blazor.Viewer.OnRequestInfo.html">OnRequestInfo</a> object.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="GrapeCity_ActiveReports_Blazor_Viewer_ReportServiceSettings_OnRequest_remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>The <code>OnRequest</code> callback allows you to customize the request information before it is sent to the Web API.</p>
</div>
</div>
