public Task <ResourceControllerResult?> NotModifiedAsync(V1DemoEntity entity) { _logger.LogInformation($"entity {entity.Name()} called {nameof(NotModifiedAsync)}."); return(Task.FromResult <ResourceControllerResult?>( ResourceControllerResult.RequeueEvent(TimeSpan.FromSeconds(5)))); }
public async Task <ResourceControllerResult?> CreatedAsync(V1DemoEntity entity) { _logger.LogInformation($"entity {entity.Name()} called {nameof(CreatedAsync)}."); await _finalizerManager.RegisterFinalizerAsync <DemoFinalizer>(entity); return(ResourceControllerResult.RequeueEvent(TimeSpan.FromSeconds(5))); }