Пример #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))));
        }
Пример #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)));
        }