Open sandboxFocus
  • TOC

Metalama Documentation

Getting started

Conceptual documentation

Commented examples

API documentation

Aspect API

Extensions API

Patterns API

Flashtrace API

Introspection API

Advanced API

Post­Sharp API migration

  • Article

Method GetService

GetService<T>(bool)

In Metalama, use ServiceProvider.

Declaration
T GetService<T>(bool throwing = true) where T : class, IService
Parameters
Type Name Description
bool throwing
Returns
Type Description
T
Type Parameters
Name Description
T
  • Navigation