Class for creating a connection string that will be used with a REST service instance
Definition
Namespace:Telerik.ReportViewer.Common
Assembly:Telerik.ReportViewer.WinForms.dll
Syntax:
public class RestServiceConnectionInfo : RemoteConnectionInfo
Inheritance: objectReportEngineConnectionInfoBaseRemoteConnectionInfoRestServiceConnectionInfo
Inherited Members
Example:
private void SetRestServiceReportEngineConnection(object sender, System.EventArgs e)
{
this.reportViewer1.ReportEngineConnection = new Telerik.ReportViewer.Common.RestServiceConnectionInfo("http://servicehost:83/api/reports", "authToken", 20).ConnectionString;
}
Private Sub SetRestServiceReportEngineConnection(sender As Object, e As System.EventArgs)
Me.ReportViewer1.ReportEngineConnection = New Telerik.ReportViewer.Common.RestServiceConnectionInfo("http://servicehost:83/api/reports", "authToken", 20).ConnectionString
End Sub
Constructors
Class for creating a connection string that will be used with a REST service instance
public RestServiceConnectionInfo(string uri, bool useDefaultCredentials)
The URI of /api/reports endpoint the REST service. Example: http://localhost:58619/api/reports
useDefaultCredentialsboolDetermines if the default credentials will be sent
Class for creating a connection string that will be used with a REST service instance
public RestServiceConnectionInfo(string uri, int timeout)
The URI of /api/reports endpoint the REST service. Example: http://localhost:58619/api/reports
timeoutintThe timeout for rendering a document measured in seconds
Class for creating a connection string that will be used with a REST service instance
public RestServiceConnectionInfo(string uri, string token, bool useDefaultCredentials, int timeout, bool keepClientAlive)
The URI of /api/reports endpoint the REST service. Example: http://localhost:58619/api/reports
tokenstringAuthentication token to be sent with each request
useDefaultCredentialsboolDetermines if the default credentials will be sent
timeoutintThe timeout for rendering a document measured in seconds
keepClientAliveboolDetermines if the client will be kept alive (will not be expired)
Class for creating a connection string that will be used with a REST service instance
public RestServiceConnectionInfo(string uri, string token, bool useDefaultCredentials, int timeout)
The URI of /api/reports endpoint the REST service. Example: http://localhost:58619/api/reports
tokenstringAuthentication token to be sent with each request
useDefaultCredentialsboolDetermines if the default credentials will be sent
timeoutintThe timeout for rendering a document measured in seconds
Class for creating a connection string that will be used with a REST service instance
public RestServiceConnectionInfo(string uri, string token, bool useDefaultCredentials)
The URI of /api/reports endpoint the REST service. Example: http://localhost:58619/api/reports
tokenstringAuthentication token to be sent with each request
useDefaultCredentialsboolDetermines if the default credentials will be sent
Class for creating a connection string that will be used with a REST service instance
public RestServiceConnectionInfo(string uri, string token, int timeout)
The URI of /api/reports endpoint the REST service. Example: http://localhost:58619/api/reports
tokenstringAuthentication token to be sent with each request
timeoutintThe timeout for rendering a document measured in seconds
Class for creating a connection string that will be used with a REST service instance
public RestServiceConnectionInfo(string uri, string token)
The URI of /api/reports endpoint the REST service. Example: http://localhost:58619/api/reports
tokenstringAuthentication token to be sent with each request
Class for creating a connection string that will be used with a REST service instance
public RestServiceConnectionInfo(string uri)
The URI of /api/reports endpoint the REST service. Example: http://localhost:58619/api/reports
Properties
Gets or sets the custom HTTP headers sent with each request to the REST Service.
public HttpHeadersOptions HttpHeaders { get; set; }
The headers are not part of the ConnectionString. The options are applied when assigned; later changes to the same instance are ignored until it is assigned again. Use GetHeadersAsync for headers that change over time.
Token
string
Gets or sets authentication token
public string Token { get; set; }
Determines if the default credentials to be set when connecting to report engine
public bool UseDefaultCredentials { get; set; }