コード例 #1
0
 public MainWindowViewModelFactory(IAuthenticator authenticator, IDiffieHellmanKeyExchangeService keyExchangeService, IDiffieHellmanEncryptionService messageEncryptionService, IDiffieHellmanDecryptionService messageDecryptionService)
 {
     _authenticator            = authenticator;
     _keyExchangeService       = keyExchangeService;
     _messageEncryptionService = messageEncryptionService;
     _messageDecryptionService = messageDecryptionService;
 }
コード例 #2
0
 public AuthenticationService(IAccountDataService accountDataService, IDiffieHellmanKeyExchangeService keyExchangeService, IDiffieHellmanEncryptionService messageEncryptionService, IDiffieHellmanDecryptionService messageDecryptionService)
 {
     _accountDataService       = accountDataService;
     _keyExchangeService       = keyExchangeService;
     _messageEncryptionService = messageEncryptionService;
     _messageDecryptionService = messageDecryptionService;
 }
コード例 #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);
 }