Skip to content

Commit

Permalink
#22 - forgot I was going to need to pass this through also.
Browse files Browse the repository at this point in the history
  • Loading branch information
alanjuden committed Mar 22, 2017
1 parent e429022 commit f734979
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
9 changes: 9 additions & 0 deletions AlanJuden.MvcReportViewer.NetCore/ReportController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,14 @@ protected virtual System.ServiceModel.HttpClientCredentialType ClientCredentialT
}
}

protected virtual int? Timeout
{
get
{
return null;
}
}

public JsonResult ViewReportPage(string reportPath, int? page = 0)
{
var model = this.GetReportViewerModel(Request);
Expand Down Expand Up @@ -225,6 +233,7 @@ protected ReportViewerModel GetReportViewerModel(HttpRequest request)
model.Encoding = this.Encoding;
model.ServerUrl = this.ReportServerUrl;
model.ReportImagePath = this.ReportImagePath;
model.Timeout = this.Timeout;
model.UseCustomReportImagePath = this.UseCustomReportImagePath;
model.BuildParameters(Request);

Expand Down
9 changes: 9 additions & 0 deletions AlanJuden.MvcReportViewer/ReportController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,14 @@ protected virtual string ReportImagePath
}
}

protected virtual int? Timeout
{
get
{
return null;
}
}

public JsonResult ViewReportPage(string reportPath, int? page = 0)
{
var model = this.GetReportViewerModel(Request);
Expand Down Expand Up @@ -207,6 +215,7 @@ protected ReportViewerModel GetReportViewerModel(HttpRequestBase request)
model.Encoding = this.Encoding;
model.ServerUrl = this.ReportServerUrl;
model.ReportImagePath = this.ReportImagePath;
model.Timeout = this.Timeout;
model.UseCustomReportImagePath = this.UseCustomReportImagePath;
model.BuildParameters(Request);

Expand Down

0 comments on commit f734979

Please sign in to comment.