public ReportDesignerAPIController(Microsoft.Extensions.Caching.Memory.IMemoryCache memoryCache, Microsoft.AspNetCore.Hosting.IHostingEnvironment hostingEnvironment) { _cache = memoryCache; _hostingEnvironment = hostingEnvironment; ExternalServer externalServer = new ExternalServer(_hostingEnvironment); ReportDesignerHelper.ReportingServer = externalServer; }
public ReportDesignerWebApiController(Microsoft.Extensions.Caching.Memory.IMemoryCache memoryCache, IWebHostEnvironment hostingEnvironment) #endif { _cache = memoryCache; _hostingEnvironment = hostingEnvironment; ExternalServer externalServer = new ExternalServer(_hostingEnvironment); this.ServerURL = "Sample"; externalServer.ReportServerUrl = this.ServerURL; ReportDesignerHelper.ReportingServer = this.Server = externalServer; }