public async Task<int> Apply() { int result = VSConstants.S_OK; if (IsDirty) { result = await OnApply(); if (result == VSConstants.S_OK) { IsDirty = false; } } return result; }
protected async override Task <int> OnApply() { return(await _control.Apply()); }