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

公司网站建设应注意什么200元自助网站建设

公司网站建设应注意什么,200元自助网站建设,电子商务具体干嘛的,盐城网站优化方案1#xff09;问题#xff0c;Class MessageA 基类#xff0c;Class MessageB继承自MessageA#xff1b; 用bus.Publish方法本想把有些消息只发给B队列#xff0c;结果由于其继承关系A队列也获得了消息#xff1b; 解决方法用send#xff0c; Uri uri new Uri(RabbitM…1问题Class MessageA 基类Class MessageB继承自MessageA 用bus.Publish方法本想把有些消息只发给B队列结果由于其继承关系A队列也获得了消息 解决方法用send Uri uri new Uri(RabbitMqUriQueueB);var endPoint await _bus.GetSendEndpoint(uri);await endPoint.Send(MessageB); 2)在rabbitmq中设置 把B类型unbind掉应该就可以了 3可能的其他方式 Message Topology · MassTransit Message Topology Message types are extensively leveraged in MassTransit, so making it easy to configure how those message types are used by topology seemed obvious. Entity Name Formatters Message Type MassTransit 的exchanges,topics名称默认是消息名称可以通过如下改为别名. Bus.Factory.CreateUsingRabbitMq(cfg { cfg.MessageOrderSubmitted(x { x.SetEntityName(omg-we-got-one); }); }); Its also possible to create a message-specific entity name formatter, by implementing IMessageEntityNameFormatterT and specifying it during configuration. class FancyNameFormatterT :IMessageEntityNameFormatterT {public string FormatEntityName(){// seriously, please dont do this, like, ever.return type(T).Name.ToString();} }Bus.Factory.CreateUsingRabbitMq(cfg {cfg.MessageOrderSubmitted(x {x.SetEntityNameFormatter(new FancyNameFormatterOrderSubmitted());}); });Its also possible to replace the entity name formatter for the entire topology. class FancyNameFormatterT :IMessageEntityNameFormatterT {public string FormatEntityName(){// seriously, please dont do this, like, ever.return type(T).Name.ToString();} }class FancyNameFormatter :IEntityNameFormatter {public FancyNameFormatter(IEntityNameFormatter original){_original original;}public string FormatEntityNameT(){if(T is OrderSubmitted)return we-got-one;return _original.FormatEntityNameT();} }Bus.Factory.CreateUsingRabbitMq(cfg {cfg.MessageOrderSubmitted(x {x.SetEntityNameFormatter(new FancyNameFormatter(cfg.MessageTopology.EntityNameFormatter));;}); });Attributes EntityName 通过EntityName 熟悉修改消息名称 [EntityName(order-submitted)] public record LegacyOrderSubmittedEvent{} ConfigureConsumeTopology ConfigureConsumeTopology 可选属性设置后决定这个消息类型对应的topic或exchange是否应该被创建并订阅到这个队列。 [ConfigureConsumeTopology(false)] public record DeleteRecord{} ExcludeFromTopology ExcludeFromTopology 可选属性决定这个消息类型实例发布时这个消息的 topic 或 exchange 是否被创建。 如下例子中发布 ReformatHardDrive 命令不会在broker上创建 ICommand topic or exchange。 [ExcludeFromTopology] public interface ICommand{}public record ReformatHardDrive : ICommand{} 不使用属性可以在配置时设置: ...UsingRabbitMq((context,cfg) {cfg.PublishICommand(p p.Exclude true); });
http://www.tj-hxxt.cn/news/137674.html

相关文章:

  • 做视频网站对服务器要去西安做公司网站
  • 长沙网站制作公司怎么做爱网站最新发布址
  • 中国著名的网站建设公司东营市建设监理协会网站
  • html5自适应网站源码WordPress指定IP访问
  • 网站策划方案1500字wordpress theme framework
  • 大石桥网站漂亮的html静态页面
  • 登封网站关键词优化软件网站建设哪种好
  • 网站推广策划方案大数据做外贸网站挣钱吗
  • 福建省龙岩市建设培训中心网站企业在网站建设上的不足
  • 如何免费建设公司网站企业网站的发展历史
  • 广州17做网站萧山seo
  • 网站怎么做熊掌号wordpress文库
  • 中国建站平台万网建站流程
  • 前端怎么做自己的博客网站工商局注册官网入口
  • 网站之家查询域名新网站如何被快速收录
  • 国外做兼职的网站有哪些做网站竞价没有点击率
  • 中国建设银行中国网站电商类网站开发项目流程
  • 怎么注销自己做的网站做网站素材网
  • 使用的是什么网站模板刷神马网站优化排名
  • 网站不收录 域名问题旧电脑做网站服务器
  • 做网站毕业实训报告企业门户网站运营推广
  • 网站如何做电脑和手机做网站原价商品打个横线
  • 医学关键词 是哪个网站做湛江做网站电话
  • 广州在线网站制作菏泽网站建设公司蓝希科技
  • 网站空间 windows linux玉器企业网站源码
  • 广州制作外贸网站公司简介视频网站不赚钱为什么还做
  • 中铁建设集团有限公司官方网站300500启迪设计
  • 农产品网站开发定制v软件免费下载
  • 网站无法导入照片上海万户网络科技
  • 专注高密做网站哪家强h5在线设计平台