.NET 5 격리프로세스 형태로 Azure Function를 생성하게되면 static class에 static method로 Run 메서드가 생성됩니다. 하지만 습관적으로 static을 모두 삭제하고 테스트해봤더니 문제없이 동작하여 왜 static이 기본 생성탬플릿이고 꼭 필요한지 질문했습니다.
Like you’ve mentioned, both work and its completely up to you. Originally, only static functions were supported and later support for instance functions were added.
Dependency Injection requires non-static classes but for most simpler use cases, you could get away with static classes. For example, simple transformations, routing scenarios, etc.
이렇다고 하시네요. 그냥 static 없이 쓰셔도 될 것 같습니다.