Exemplo n.º 1
0
 /// <summary>
 ///     Initializes an instance of the <see cref="BaseClient" /> class
 /// </summary>
 protected BaseClient()
 {
     _encryptor     = new SymetricEncryption();
     _negotiator    = new SecurityNegotiationClient(_encryptor);
     _requestSocket = new RequestSocket();
     _requestSocket.Options.Identity = Guid.NewGuid().ToByteArray();
     _requestSocket.Connect("tcp://127.0.0.1:9000");
 }
Exemplo n.º 2
0
 /// <summary>
 ///     Initializes an instance of the <see cref="CapabilityClient{TArgument,TReturn}" /> class
 /// </summary>
 /// <param name="socket">The socket used for communication</param>
 /// <param name="info">The capability info</param>
 /// <param name="encryptor">The encryption client</param>
 internal CapabilityClient(RequestSocket socket, CapabilityInfo info, SymetricEncryption encryptor)
 {
     _socket    = socket;
     _info      = info;
     _encryptor = encryptor;
 }