Пример #1
0
 public ChaosWebSocketClient(IOptions <ChaosClientConfig> config, IChaosConverter chaosConverter)
 {
     _chaosConverter   = chaosConverter;
     _config           = config;
     _binarySerializer = new ChaosBinarySerializer();
     Initialize();
 }
Пример #2
0
 public ChaosGrpcClient(IOptions <ChaosClientConfig> config,
                        IChaosConverter chaosConverter)
 {
     _chaosConverter = chaosConverter;
     _channel        = new Channel(config.Value.GetIpPort(), ChannelCredentials.Insecure);
     _client         = new ChaosProtoClient(_channel);
 }