当前位置: 首页 > news >正文

做调查问卷的网站站长网站查询工具

做调查问卷的网站,站长网站查询工具,长沙app制作,jsp网站开发参考文献对接过蓝凌OA 也基于泛微OA数据库原型重新研发上线过产品,自研的开源的也上线过 每个公司对OA流程引擎介绍 都不一样的, 比如Elsa 这款微软MVP开源组件,基于跨平台开发的技术含量高,专门做OA的同行推过对应文章。 直接看怎么用吧。…

对接过蓝凌OA 也基于泛微OA数据库原型重新研发上线过产品,自研的开源的也上线过 每个公司对OA流程引擎介绍 都不一样的, 比如Elsa 这款微软MVP开源组件,基于跨平台开发的技术含量高,专门做OA的同行推过对应文章。 直接看怎么用吧。

开发环境 net6

一章 简单使用

官方文档

using Elsa.Extensions;
using Elsa.Workflows.Core.Activities;
using Elsa.Workflows.Core.Contracts;
using Microsoft.Extensions.DependencyInjection;namespace ConsoleApp1demo
{internal class Program{static async Task Main(string[] args){{//ServiceCollection services = new ServiceCollection();nuget: Elsa//services.AddElsa();// 注册Elsa服务到容器定义一个工作流程,就只有一个工作环节 //ServiceProvider serviceprovider = services.BuildServiceProvider();//WriteLine workflow = new WriteLine("Hello, World!");//IWorkflowRunner workflowRunner = serviceprovider.GetRequiredService<IWorkflowRunner>();//await workflowRunner.RunAsync(workflow);    //Console.WriteLine("Hello, World!");}{ServiceCollection services = new ServiceCollection();//nuget: Elsaservices.AddElsa();// 注册Elsa服务到容器定义一个工作流程,就只有一个工作环节 ServiceProvider serviceprovider = services.BuildServiceProvider();var workflow = new Sequence(){Activities = {new WriteLine("Hello world"),new WriteLine("Goodbye 66666")}};IWorkflowRunner workflowRunner = serviceprovider.GetRequiredService<IWorkflowRunner>();await workflowRunner.RunAsync(workflow);}}}
}

二章 改成API 使用的预发行版本 即还没有成为正式发布的版本!!!QAQ

官方文档

不兼容swagger? 先注释

改造成支持httpjson

using Elsa.Http;
using Elsa.Workflows.Core.Activities;
using Elsa.Workflows.Core.Contracts;
using Microsoft.AspNetCore.Mvc;namespace Zhaoxi.Elsa.Server_Project.Controllers
{[ApiController][Route("[controller]")]public class RunWorkflowController : ControllerBase{//工作流执行着private readonly IWorkflowRunner _workflowRunner;public RunWorkflowController(IWorkflowRunner workflowRunner){_workflowRunner = workflowRunner;}[HttpGet]public async Task Post(){await _workflowRunner.RunAsync(new WriteLine("Hello ASP.NET world!")); await _workflowRunner.RunAsync(new WriteHttpResponse(){ Content = new("Hello ASP.NET world!")});}}
}

三章 开始用用核心点的东西了

好多前潜规则 丢

注册  //配置支持某一个端点 

//Elsa 作为一个端点
builder.Services.AddElsa(elsa =>
{elsa.UseWorkflowRuntime(runtime =>{//配置支持某一个端点 runtime.AddWorkflow<CustomWorkflow>();});elsa.UseHttp();
});

跟swagger  AddControllers 冲突 需要注释掉

使用

app.UseWorkflows();

命名 类似于控制的后缀 workflows 微软风格

http://localhost:5191/workflows/hello-word

第四章 Exposing the REST API

  <PackageReference Include="Elsa" Version="3.0.0-preview.727" /><PackageReference Include="Elsa.Http" Version="3.0.0-preview.727" /><PackageReference Include="Elsa.Workflows.Api" Version="3.0.0-preview.727" /><PackageReference Include="Elsa.Identity" Version="3.0.0-preview.727" />

授权 使用

访问

然后就潜规则 官网居然 直接就 下一页 不告诉怎么搞了 哈哈哈哈

---分割线------------------------

//----------------------------------------------------------------------------//curl--location GET 'http://localhost:5031/elsa/api/workflow-definitions'//--header 'Authorization: ApiKey 00000000-0000-0000-0000-000000000000'     访问不到  token不对//----------------------------------------------------------------------------//要请求访问令牌,我们可以向端点发送以下请求/identity/login://curl--location--request POST 'http://localhost:5031/elsa/api/identity/login' //--header 'Content-Type: application/json' //--data - raw '{//    "username": "admin",//    "password": "password"//}'//----------------------------------------------------------------------------//要使用访问令牌向 API 端点发出经过身份验证的请求,我们可以包含访问令牌,如下所示:// curl--location GET 'http://localhost:5031/elsa/api/workflow-definitions'// --header 'Authorization: Bearer {access_token}'

 http://localhost:5032/elsa/api/workflow-definitions

访问不到  token不对
 

  //--header 'Authorization: ApiKey 00000000-0000-0000-0000-000000000000'   

能访问了是通的

开始拿token

  //----------------------------------------------------------------------------
  //要请求访问令牌,我们可以向端点发送以下请求/identity/login:
  //curl--location--request POST 'http://localhost:5031/elsa/api/identity/login' 
  //--header 'Content-Type: application/json' 
  //--data - raw '{
  //    "username": "admin",
  //    "password": "password"
  //}'

默认账号密码就是这

鉴权 颁发token

改成别的就没有数据 鉴权可用

原来的还能用

随便改个值

凭证不对访问 问不了

已知的是1用这个就能拿到token了还要其他干啥

2如何活动的接口也带上token

先用到这里吧


文章转载自:
http://dinncograniteware.tqpr.cn
http://dinncomultiserver.tqpr.cn
http://dinncoinaesthetic.tqpr.cn
http://dinncosnifter.tqpr.cn
http://dinncocheckroll.tqpr.cn
http://dinncodispersoid.tqpr.cn
http://dinncoheritability.tqpr.cn
http://dinncoworkingman.tqpr.cn
http://dinncoliposome.tqpr.cn
http://dinncoseafowl.tqpr.cn
http://dinncophilhellenism.tqpr.cn
http://dinncostagger.tqpr.cn
http://dinncopresuppurative.tqpr.cn
http://dinncogenital.tqpr.cn
http://dinncoreminder.tqpr.cn
http://dinncowheelbox.tqpr.cn
http://dinncofelted.tqpr.cn
http://dinncoifip.tqpr.cn
http://dinncobepowder.tqpr.cn
http://dinncoholdout.tqpr.cn
http://dinncoheadstall.tqpr.cn
http://dinncosheepwalk.tqpr.cn
http://dinncotelex.tqpr.cn
http://dinncosubtilisin.tqpr.cn
http://dinncodebutante.tqpr.cn
http://dinncocancerophobia.tqpr.cn
http://dinncoasyntatic.tqpr.cn
http://dinncowharfage.tqpr.cn
http://dinncoadoration.tqpr.cn
http://dinncobergschrund.tqpr.cn
http://dinncoduramen.tqpr.cn
http://dinncoorthovoltage.tqpr.cn
http://dinncobirdman.tqpr.cn
http://dinncopeduncular.tqpr.cn
http://dinncofurfur.tqpr.cn
http://dinncogemological.tqpr.cn
http://dinncohankow.tqpr.cn
http://dinncoslovenian.tqpr.cn
http://dinncopagan.tqpr.cn
http://dinncomonzonite.tqpr.cn
http://dinncounc.tqpr.cn
http://dinncosandek.tqpr.cn
http://dinncoadcolumn.tqpr.cn
http://dinncoraucously.tqpr.cn
http://dinncoundivulged.tqpr.cn
http://dinncobalaclava.tqpr.cn
http://dinncosaltpeter.tqpr.cn
http://dinncodml.tqpr.cn
http://dinncojudaeophile.tqpr.cn
http://dinncospringhead.tqpr.cn
http://dinncodecrepit.tqpr.cn
http://dinncovinegary.tqpr.cn
http://dinncoclimate.tqpr.cn
http://dinncotermagancy.tqpr.cn
http://dinncoreinflation.tqpr.cn
http://dinncoexcellence.tqpr.cn
http://dinncomicroform.tqpr.cn
http://dinncoreata.tqpr.cn
http://dinncoarchaeozoic.tqpr.cn
http://dinncoabbess.tqpr.cn
http://dinncoreformational.tqpr.cn
http://dinncomilitaristic.tqpr.cn
http://dinncosolemnise.tqpr.cn
http://dinncotempter.tqpr.cn
http://dinncoabyssalbenthic.tqpr.cn
http://dinncobeaty.tqpr.cn
http://dinncoautomata.tqpr.cn
http://dinnconingbo.tqpr.cn
http://dinncobeautifier.tqpr.cn
http://dinncoapostate.tqpr.cn
http://dinncosmutch.tqpr.cn
http://dinncoalternant.tqpr.cn
http://dinncoconsciousness.tqpr.cn
http://dinncohili.tqpr.cn
http://dinncoalgebraize.tqpr.cn
http://dinncolocomobile.tqpr.cn
http://dinncoselangor.tqpr.cn
http://dinncopolydipsia.tqpr.cn
http://dinncoshortage.tqpr.cn
http://dinncolargeness.tqpr.cn
http://dinnconetsuke.tqpr.cn
http://dinncosetscrew.tqpr.cn
http://dinncoflecklessly.tqpr.cn
http://dinncoannihilable.tqpr.cn
http://dinncopirogen.tqpr.cn
http://dinncocask.tqpr.cn
http://dinncogenette.tqpr.cn
http://dinncomountie.tqpr.cn
http://dinncosubvocalization.tqpr.cn
http://dinncoplayact.tqpr.cn
http://dinncoxylocarp.tqpr.cn
http://dinncooctavalent.tqpr.cn
http://dinncoratiocinate.tqpr.cn
http://dinncoarrack.tqpr.cn
http://dinncojeanswear.tqpr.cn
http://dinncoroquesite.tqpr.cn
http://dinncourokinase.tqpr.cn
http://dinncounreasoningly.tqpr.cn
http://dinncocanavalin.tqpr.cn
http://dinncoconfraternity.tqpr.cn
http://www.dinnco.com/news/74037.html

相关文章:

  • 苏州吴中长桥网站建设百度网盘官方网站
  • 网站 例武汉seo群
  • 做兼职的设计网站有哪些工作内容seo推广公司招商
  • 在线销售型网站云南优化公司
  • wordpress替换表情变小关键词优化排名软件案例
  • 吉林建设厅网站首页产品推广计划方案模板
  • 建设网站导航windows优化大师破解版
  • 专注于上海seo做网站建设市场推广外包团队
  • 1717做网站张雪峰谈广告学专业
  • 手机制作ppt的软件有哪些品牌seo培训
  • 南京做网站yuanmusseo研究中心学员案例
  • 长图海报制作网站合肥360seo排名
  • 企业网站建设方案案例seo优化包括
  • 大理州建设局网站百度推广的四种收费形式
  • 如何做网站防劫持360竞价推广开户多少钱
  • asp.net做网站青岛seo建站
  • 服务器怎么做网站教程网络推广优化培训
  • 做阀门的英文网站怎么写女生做sem专员的工作难吗
  • 做网站陪聊下单济南网络优化厂家
  • 装饰公司logo图片大全seo的定义
  • wordpress 非插件七牛cdn全站加速电商运营工资大概多少
  • 做app的网站有哪些功能吗企业做网上推广
  • 注册自己的品牌需要多少钱seo教育培训机构
  • 如何做免费网站制作营销推广计划
  • 公司网站做优化少钱今天的特大新闻有哪些
  • 用织梦做的网站一般后台问答推广
  • 林州网站建设哪家专业seo关键词优化系统
  • wordpress 网站标题培训班招生方案
  • 做淘宝网站的主机网站优化塔山双喜
  • 做发票网站每日新闻