private static async Task <Unit> Write <T>(this AdsClient beckhoff, ISymbol symbol, T value) { try { await beckhoff.WriteValueAsync(symbol, value, CancellationToken.None); } catch (Exception e) { Log.Logger.Error(e, $"Error while writing Beckhoff value {value} into {symbol.InstancePath}"); } return(Unit.Default); }