Ejemplo n.º 1
0
 public MainWindowViewModelFactory(IAuthenticator authenticator, IDiffieHellmanKeyExchangeService keyExchangeService, IDiffieHellmanEncryptionService messageEncryptionService, IDiffieHellmanDecryptionService messageDecryptionService)
 {
     _authenticator            = authenticator;
     _keyExchangeService       = keyExchangeService;
     _messageEncryptionService = messageEncryptionService;
     _messageDecryptionService = messageDecryptionService;
 }
Ejemplo n.º 2
0
 public AuthenticationService(IAccountDataService accountDataService, IDiffieHellmanKeyExchangeService keyExchangeService, IDiffieHellmanEncryptionService messageEncryptionService, IDiffieHellmanDecryptionService messageDecryptionService)
 {
     _accountDataService       = accountDataService;
     _keyExchangeService       = keyExchangeService;
     _messageEncryptionService = messageEncryptionService;
     _messageDecryptionService = messageDecryptionService;
 }
Ejemplo n.º 3
0
 public static MainWindowViewModel GetInstance(IAuthenticator authenticator, IDiffieHellmanKeyExchangeService keyExchangeService,
                                               IDiffieHellmanEncryptionService messageEncryptionService, IDiffieHellmanDecryptionService messageDecryptionService)
 {
     if (instance == null)
     {
         instance = new MainWindowViewModel(authenticator, keyExchangeService, messageEncryptionService, messageDecryptionService);
     }
     return(instance);
 }
Ejemplo n.º 4
0
 public ViewModelRootFactory(IAuthenticator authenticator, IWindowFactory windowFactory, IDiffieHellmanKeyExchangeService keyExchangeService)
 {
     _authenticator      = authenticator;
     _windowFactory      = windowFactory;
     _keyExchangeService = keyExchangeService;
 }