Exemplo n.º 1
0
 public LongPollService()
 {
     _sessionInfoRepo = DIService.GetSingleton<SessionInfoRepo>();
     _friendsService = new FriendsService();
     _dialogMessagesRepo = DIService.GetSingleton<DialogMessagesRepo>();
     _dialogMessagesService = new DialogMessagesService();
     _mp3Player = new Mp3Player(Sounds.IncomingMessage);
 }
Exemplo n.º 2
0
 public void Init()
 {
     DIService.Initialize();
     var sessionInfoService = new SessionInfoService();
     sessionInfoService.LoadFromDB();
     var friends = new FriendsService();
     friends.LoadFromVkOrDB();
 }