AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Masstransit msmq4/1/2023 They'll minimize the first MDI parent (instance A) and launch another one (instance B) to work on so their first instance doesn't loose its state. They might take a call from one customer, start taking down order info and then get a call from another customer. Its an order entry application, and instead of having one parent form within which multiple child order entry forms could be launched, a new MDI parent form is launched each time they need to service a different customer. The initial VB3(?) design of this app was done is such a way that the users launch separate instances of the MDI parent whenever they need to. Good question - I would like to do that and get away from this model (currently existing in a VB6 form - we're slowly starting to migrate small pieces to. Does this scenario sound like something for which CSLA would be a good framework? Thanks. I was beginning to read up on WCF to allow communication across app domains, but from my prior reading on CSLA I think I remember that this handles these types of things. Form C - another instance of the MDI app.Form A - contains the ActiveX control and provides messages to every other app instance.(Note that this messaging "app" is really part of the same overall will not be utilized by anything other than these opened instances of the main MDI form.) Specifically, this separate "app" will contain an ActiveX control that receives messages from telephony software and needs to pass call information to one of the open instances (or open a new instance, if required). There will also be one separate "app" that will act as a gateway to the multiple instances. NET application that will need to allow for multiple instances to be open simultaneously (on a given desktop machine). If you are using the container (which is the default with ASP.NET Core), then you will need the package for MassTransit.I'd like to know if CSLA would be a good fit for a project that I'm preparing to work on based the folllowing scenario encountered in the project: I will have a. Note that the package is currently only available as a pre-release version and also requires a pre-release version of MassTransit. Furthermore, the new package is part of a massive migration for. NET Standard, which still isn’t complete, so you should probably be a bit careful as there are likely going to be quite a few moving parts until the final release. In Startup.ConfigureServices, you need to add MassTransit, just like you would add other services: services.AddMassTransit(c => But from looking at the pull request that introduced it and the current source, I think what you need to do is the following: Since the package isn’t officially released, there also isn’t any documentation on it yet. Services.AddSingleton, InMemorySagaRepository>() you still need to register the consumers/sagas In the configure action, you need to register you consumers and sagas in order for MassTransit to resolve them properly later. The method can take any dependency as an argument, so you can easily inject the service provider there: public void Configure(IApplicationBuilder app, IServiceProvider serviceProvider, IApplicationLifetime applicationLifetime) Then, in your bus configuration, you would call LoadFrom with the service provider: sbc.ReceiveEndpoint(host, Configuration, e =>Īs for where you should do this (also in order to have access to the service provider), I would suggest you to do it in your Startup’s Configure method. Var host = sbc.Host(new Uri("rabbitmq://localhost"), h => MassTransit supports MSMQ, RabbitMQ, and others, but I find that RabbitMQ is really the way to go. That’s especially true when using the publish/subscribe pattern. The reason for this is that RabbitMQ has a complete routing framework built-in and MassTransit will leverage this when persisting your subscriptions. start/stop the bus with the web applicationĪ(bus.Start) Ī(bus.Stop) Sbc.ReceiveEndpoint(host, Configuration, e => One final disclaimer though: I personally haven’t used MassTransit, so I don’t really know if this makes actual sense for the library. I also had the same issue and poke's answer didn't work for me as I needed to use DI for IBus, IPublishEndpoint and ISendEndpointProvider. I found this example here services.AddSingleton(provider => (cfg => I actually found the solution in a deleted answer with a down vote on this very question. Var host = cfg.Host("localhost", "/", h => ) Ĭfg.
0 Comments
Read More
Leave a Reply. |