当前位置: 首页 > 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.dnsts.com.cn/news/51166.html

相关文章:

  • 汉中网站建设公司电话网站开发 集成包
  • 威海网站建设是什么查企业免费的网站
  • 小羚羊网站怎么建设江西求做网站
  • 佛山微网站建设自己网站的关键词怎么改
  • 怎样设计一个网站平台天津塘沽爆炸
  • ui做网站流程拼多多关键词排名查询软件
  • 河南省住房和城乡建设厅查询网站首页旅游建设门户网站的方案
  • 阿里云建wordpress站邯郸市网站建设多少钱
  • 网站对联广告图片免费舆情信息网站
  • 网站建设宀金手指花总十五什么叫平台
  • 怎么搭建网站后台重庆最好的网站建设
  • 做 理财网站有哪些内容产品导航网站源码
  • 图书馆网站建设的意义网站建设空间是否续费
  • 地方网站建设网站定制要求
  • 企业网站建设有哪些visualstudio 做网站
  • 禅城网站建设价格站长工具app
  • 网站二级域名建站属于子站吗seo中国官网
  • 制作闹钟网站牡丹江网站建设公司
  • 网站制作需要平台做服装广告素材网站
  • 12306网站服务时间wordpress 小视频
  • wordpress新闻站wordpress获取某个分类下所有分类
  • 西安市做网站济南兼职做网站
  • 制作网站 美工网站用什么布局
  • 现在那个网站做视频最赚钱桂林北站官网
  • 如何进行企业营销型网站建设规划个人网站建设 实验报告
  • 一个域名可以做多少个二级网站网站建设合同 附件
  • 泰兴市住房和城乡建设局网站网站注册协议模板
  • 外贸类网站模板最近火爆的新闻大事
  • 做企业展示网站做房产网站接不到电话
  • 江西网站建设公司费用虚拟主机多个网站