question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Rename services in 5.0

See original GitHub issue

I’d like to rename all of the services we have right now to remove the Service suffix. There’s no real reason to have it, plus it makes the FulfillmentServiceService sound kinda silly. I’m thinking of just pluralizing the name of the object they deal with, so OrderService would become Orders and FulfillmentServiceService would become FulfillmentServices.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
nozzlegearcommented, May 23, 2018

Sure, I don’t mind the FulfillmentServiceService so much, but FulfillmentService and FulfillmentServiceEntity are a little confusing when none of the other entities have an “Entity” suffix. Maybe a better solution would be namespacing the services and entities to ShopifySharp.Services and ShopifySharp.Entities.

0reactions
davron12commented, May 31, 2018

If you’re going to change or remove the suffix, I’d lean towards a different suffix rather than pluralized. I can foresee the following if you go the pluralized route:

var orders = new Orders();
var orders = await orders.ListAsync();

Namespacing would remove the FulfillmentService problem as well, and would follow the folder-namepace best practice. The problem is, it’s going to break a lot of existing code. Well, any of these suggested changes are going to break existing code.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to rename and hide Windows services
5. In the right pane, right-click on the “Display Name” value and select “Modify.” Change value to “Generic Service.”
Read more >
Q&A: How do I Change the Name of my Windows Service?
How to change the Service Name · Open the Registry Editor. · On the left, navigate to the section where Windows Services are...
Read more >
How can I change the name of a windows service?
The configuration for Windows services are stored in the Registy, under HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services... You will ...
Read more >
How to change windows service name after creating it? (2 ...
How to change windows service name after creating it? The Question: I have created windows service for tomcat server and it is running...
Read more >
Tutorial: Create a Windows service app - .NET Framework
Rename the service · In Solution Explorer, select Service1.cs or Service1. · In the pop-up window, select Yes. Rename prompt · In the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found