"use strict";(self.webpackChunkfurion=self.webpackChunkfurion||[]).push([[9772],{8337:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>i,contentTitle:()=>r,default:()=>c,frontMatter:()=>o,metadata:()=>d,toc:()=>u});var a=t(5893),s=t(1151);const o={id:"taskqueued",title:"18. TaskQueued \u9759\u6001\u7c7b",sidebar_label:"18. TaskQueued \u9759\u6001\u7c7b"},r=void 0,d={id:"global/taskqueued",title:"18. TaskQueued \u9759\u6001\u7c7b",description:"\u4ee5\u4e0b\u5185\u5bb9\u4ec5\u9650 Furion 4.8.3 + \u7248\u672c\u4f7f\u7528\u3002",source:"@site/docs/global/taskqueued.mdx",sourceDirName:"global",slug:"/global/taskqueued",permalink:"/docs/global/taskqueued",draft:!1,unlisted:!1,editUrl:"https://gitee.com/dotnetchina/Furion/tree/v4/handbook/docs/global/taskqueued.mdx",tags:[],version:"current",lastUpdatedBy:"kingling",lastUpdatedAt:1678411248,formattedLastUpdatedAt:"Mar 10, 2023",frontMatter:{id:"taskqueued",title:"18. TaskQueued \u9759\u6001\u7c7b",sidebar_label:"18. TaskQueued \u9759\u6001\u7c7b"},sidebar:"global",previous:{title:"17. Schedular \u9759\u6001\u7c7b",permalink:"/docs/global/schedular"},next:{title:"19. Native \u9759\u6001\u7c7b",permalink:"/docs/global/native"}},i={},u=[{value:"18.1 \u540c\u6b65\u5165\u961f",id:"181-\u540c\u6b65\u5165\u961f",level:2},{value:"18.2 \u5f02\u6b65\u5165\u961f",id:"182-\u5f02\u6b65\u5165\u961f",level:2}];function l(e){const n={admonition:"admonition",code:"code",h2:"h2",p:"p",pre:"pre",...(0,s.a)(),...e.components};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(n.admonition,{title:"\u7248\u672c\u8bf4\u660e",type:"important",children:(0,a.jsxs)(n.p,{children:["\u4ee5\u4e0b\u5185\u5bb9\u4ec5\u9650 ",(0,a.jsx)(n.code,{children:"Furion 4.8.3 +"})," \u7248\u672c\u4f7f\u7528\u3002"]})}),"\n",(0,a.jsx)(n.h2,{id:"181-\u540c\u6b65\u5165\u961f",children:"18.1 \u540c\u6b65\u5165\u961f"}),"\n",(0,a.jsx)(n.pre,{children:(0,a.jsx)(n.code,{className:"language-cs",metastring:"showLineNumbers",children:"TaskQueued.Enqueue((provider) => {}, [delay]);\r\nTaskQueued.Enqueue((provider) => {}, cronExpression, [format]);\n"})}),"\n",(0,a.jsx)(n.h2,{id:"182-\u5f02\u6b65\u5165\u961f",children:"18.2 \u5f02\u6b65\u5165\u961f"}),"\n",(0,a.jsx)(n.pre,{children:(0,a.jsx)(n.code,{className:"language-cs",metastring:"showLineNumbers",children:"await TaskQueued.EnqueueAsync(async (provider, token) => {}, [delay]);\r\nawait TaskQueued.EnqueueAsync(async (provider, token) => {}, cronExpression, [format]);\n"})})]})}function c(e={}){const{wrapper:n}={...(0,s.a)(),...e.components};return n?(0,a.jsx)(n,{...e,children:(0,a.jsx)(l,{...e})}):l(e)}},1151:(e,n,t)=>{t.d(n,{Z:()=>d,a:()=>r});var a=t(7294);const s={},o=a.createContext(s);function r(e){const n=a.useContext(o);return a.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function d(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:r(e.components),a.createElement(o.Provider,{value:n},e.children)}}}]);