public MainWindowViewModelFactory(IAuthenticator authenticator, IDiffieHellmanKeyExchangeService keyExchangeService, IDiffieHellmanEncryptionService messageEncryptionService, IDiffieHellmanDecryptionService messageDecryptionService) { _authenticator = authenticator; _keyExchangeService = keyExchangeService; _messageEncryptionService = messageEncryptionService; _messageDecryptionService = messageDecryptionService; }
public AuthenticationService(IAccountDataService accountDataService, IDiffieHellmanKeyExchangeService keyExchangeService, IDiffieHellmanEncryptionService messageEncryptionService, IDiffieHellmanDecryptionService messageDecryptionService) { _accountDataService = accountDataService; _keyExchangeService = keyExchangeService; _messageEncryptionService = messageEncryptionService; _messageDecryptionService = messageDecryptionService; }
public static MainWindowViewModel GetInstance(IAuthenticator authenticator, IDiffieHellmanKeyExchangeService keyExchangeService, IDiffieHellmanEncryptionService messageEncryptionService, IDiffieHellmanDecryptionService messageDecryptionService) { if (instance == null) { instance = new MainWindowViewModel(authenticator, keyExchangeService, messageEncryptionService, messageDecryptionService); } return(instance); }