예제 #1
0
 public LapiClient(
     Guid ownGuid,
     ImmutableArray <byte> presharedKey,
     IAuthenticatedConnectionFactory authenticatedConnectionFactory,
     IOtpServiceFactory otpServiceFactory)
 {
     this.ownGuid      = ownGuid;
     this.presharedKey = presharedKey;
     this.authenticatedConnectionFactory = authenticatedConnectionFactory;
     this.otpServiceFactory = otpServiceFactory;
 }
예제 #2
0
 public LapiServer(
     Guid ownGuid,
     ImmutableArray <byte> presharedKey,
     IAuthenticatedConnectionFactory authenticatedConnectionFactory,
     IOtpServiceFactory otpServiceFactory,
     IServer serverImplementation)
 {
     this.presharedKey = presharedKey;
     this.authenticatedConnectionFactory = authenticatedConnectionFactory;
     this.otpServiceFactory    = otpServiceFactory;
     this.serverImplementation = serverImplementation;
     this.ownGuid = ownGuid;
 }