Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The service dependencies described above in the previous section this topic are always injected on instance fields (non-static). In static methods however, a non-static field cannot be accessed and so such a service dependency cannot be used. Static service injection is not supported, therefore using services acquired from a service dependency cannot be used in a static method.

...