private void UseProxyClient(Action<ILogSaver> accessor) { var client = new LogSaverClient(); try { accessor(client.LogSaver); client.Close(); } catch (CommunicationException e) { client.Abort(); //throw new OperationFailedException(e); } }
private void UseProxyClient(Action <ILogUploader> logUploaderAccessor) { var client = new LogSaverClient(); try { logUploaderAccessor(client.LogUploader); client.Close(); } catch (Exception) { client.Abort(); throw; } }
private void UseProxyClient(Action <ILogSaver> accessor) { var client = new LogSaverClient(); try { accessor(client.LogSaver); client.Close(); } catch (CommunicationException) { client.Abort(); throw; } }