Esempio n. 1
0
        public Task <ResourceControllerResult?> NotModifiedAsync(V1DemoEntity entity)
        {
            _logger.LogInformation($"entity {entity.Name()} called {nameof(NotModifiedAsync)}.");

            return(Task.FromResult <ResourceControllerResult?>(
                       ResourceControllerResult.RequeueEvent(TimeSpan.FromSeconds(5))));
        }
Esempio n. 2
0
        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)));
        }