关于 c#:Mvc Contrib Portable area – 交换总线? | 珊瑚贝

Mvc Contrib Portable areas – swap out the bus?


是否可以将公共汽车换成公共交通之类的东西?我的应用中已经有一个服务总线,所以不想再介绍一个。

理想情况下,我可以通过 IoC 对其进行配置,但听起来总线包含 IoC 容器?


据我所知,您可以提供自己的 IApplicationBus

实现

1
2
3
4
5
public interface IApplicationBus:IList<Type>
{
    void Send(IEventMessage eventMessage);
    void SetMessageHandlerFactory(IMessageHandlerFactory factory);
}

便携式区域使用 Bus 类的实例,该类在内部使用为 IApplicationBus 接口提供的实例或 ApplicationBus 类的本地默认值。以下界面适合您的需要,因此您可以轻松完成。


来源:https://www.codenong.com/10246402/

微信公众号
手机浏览(小程序)

Warning: get_headers(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57

Warning: get_headers(): Failed to enable crypto in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57

Warning: get_headers(https://static.shanhubei.com/qrcode/qrcode_viewid_10540.jpg): failed to open stream: operation failed in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57
0
分享到:
没有账号? 忘记密码?