예제 #1
0
 public DocbuilderReportsUtilityHelper(
     DocbuilderReportsUtility docbuilderReportsUtility,
     AuthContext authContext,
     TenantManager tenantManager,
     IHttpContextAccessor httpContextAccessor)
     : this(docbuilderReportsUtility, authContext, tenantManager)
 {
     HttpContextAccessor = httpContextAccessor;
 }
예제 #2
0
 public DocbuilderReportsUtilityHelper(
     DocbuilderReportsUtility docbuilderReportsUtility,
     AuthContext authContext,
     TenantManager tenantManager)
 {
     DocbuilderReportsUtility = docbuilderReportsUtility;
     AuthContext   = authContext;
     TenantManager = tenantManager;
     TenantId      = TenantManager.GetCurrentTenant().TenantId;
     UserId        = AuthContext.CurrentAccount.ID;
 }
예제 #3
0
        public ReportState(string fileName, string tmpFileName, string script, int reportType, ReportOrigin origin, Action <ReportState, string> saveFileAction, object obj)
        {
            Id             = DocbuilderReportsUtility.GetCacheKey(origin);
            Origin         = origin;
            FileName       = fileName;
            TmpFileName    = tmpFileName;
            Script         = script;
            ReportType     = reportType;
            SaveFileAction = saveFileAction;
            TaskInfo       = new DistributedTask();
            TenantId       = TenantProvider.CurrentTenantID;
            UserId         = SecurityContext.CurrentAccount.ID;
            ContextUrl     = HttpContext.Current != null?HttpContext.Current.Request.GetUrlRewriter().ToString() : null;

            Obj = obj;
        }
예제 #4
0
 public ReportState Status(ReportOrigin origin)
 {
     return(DocbuilderReportsUtility.Status(origin, HttpContextAccessor, TenantId, UserId));
 }
예제 #5
0
 public void Terminate(ReportOrigin origin)
 {
     DocbuilderReportsUtility.Terminate(origin, TenantId, UserId);
 }
예제 #6
0
 public void Enqueue(ReportState state)
 {
     DocbuilderReportsUtility.Enqueue(state);
 }