public MainViewModel(IUsageAwareLogger usageAwareLogger) { this.usageAwareLogger = usageAwareLogger; this.TrackPersonCreatedCommand = new RelayCommand(async() => await this.usageAwareLogger.TrackActionAsync("Person", "created")); this.TrackPersonChangedCommand = new RelayCommand(async() => await this.usageAwareLogger.TrackActionAsync("Person", "changed")); }
public MainViewModel(IUsageAwareLogger usageAwareLogger) { this.usageAwareLogger = usageAwareLogger; this.TrackPersonCreatedCommand = new RelayCommand(async() => await this.usageAwareLogger.TrackActionAsync("Person", "created")); this.TrackPersonChangedCommand = new RelayCommand(async() => await this.usageAwareLogger.TrackActionAsync("Person", "changed", new Dictionary <string, string>() { { "personId", "4711" } })); }
public UsageAwareLogger(IUsageAwareLogger logger) => this.logger = logger ?? throw new ArgumentNullException(nameof(logger));
public ValuesController(IUsageAwareLogger usageAwareLogger) { this.usageAwareLogger = usageAwareLogger ?? throw new ArgumentNullException(nameof(usageAwareLogger)); }