orleans icon indicating copy to clipboard operation
orleans copied to clipboard

Rename UseDistributedTM method

Open ReubenBond opened this issue 8 years ago • 4 comments

The UseDistributedTM() method sits on IServiceCollection and ISiloHostBuilder, but there's no way that we should have a method so ambiguously named.

Please rename to UseDistributedTransactionManager or something more obvious.

ReubenBond avatar Jun 14 '18 22:06 ReubenBond

In the case of there's only one type of TM in our system now, pointing out of which type of TM to be used is less useful now IMO. I think it might be better to just skip on the DistributedTM since it is implementation details. We can rename it to UseTransactions or something along the line.

xiazen avatar Jun 15 '18 00:06 xiazen

That sounds good to me, too.

In that case, though, I wonder if we should call it AddTransactions. I don't know the convention, but I think that's the verb to use because we're saying "add support for transactions" rather than "use the distributed transaction manager". We should work out the convention used by the ASP.NET folk

ReubenBond avatar Jun 15 '18 03:06 ReubenBond

I think the convention in orleans is to use "Add" if there's multiple, such as storage providers. If it is just one, our code base almost always use "Use"

xiazen avatar Aug 20 '18 21:08 xiazen

Fixed by #4871

ReubenBond avatar Aug 23 '18 21:08 ReubenBond