Advertisement
Guest User

Untitled

a guest
May 30th, 2016
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. public class MyClass
  2. {
  3. private static MyConfig _config;
  4. private UnitOfWork _uow;
  5.  
  6. static MyClass(){
  7. // This takes some time since it's a web service call!!!
  8. _config = ConfigService.GetConfig();
  9. }
  10.  
  11. public MyClass(){
  12. _uow = CreateUow(_config.UOWConnectionString);
  13. }
  14.  
  15. public Response DoSomething(){
  16. // logic with _uow
  17. }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement