S
shapper
Hello,
I have a few services on my application.
Usually most of Microsoft ASP.NET services are static.
Because of this I tend to associate a service as static and
repositories as non static and if possible to be used in a Unit of
Work pattern to be able to apply many methods and commit at the end.
Should I make my services and their methods static?
Usually I use my services methods only once. For example:
MailService.SendMessage(...)
or
MembershipService.SignIn(....)
Isn't this a condition to make them static?
Thank You,
Miguel
I have a few services on my application.
Usually most of Microsoft ASP.NET services are static.
Because of this I tend to associate a service as static and
repositories as non static and if possible to be used in a Unit of
Work pattern to be able to apply many methods and commit at the end.
Should I make my services and their methods static?
Usually I use my services methods only once. For example:
MailService.SendMessage(...)
or
MembershipService.SignIn(....)
Isn't this a condition to make them static?
Thank You,
Miguel