Assembly: PostSharp (in PostSharp.dll) Version: 220.127.116.11 (18.104.22.168)
T GetService<T>( bool throwing = true ) where T : class, IService
- throwing (Optional)
- Type: System.Boolean
true whether an exception should be thrown in case the service cannot be acquired, otherwise false. The default value is true.
- An interface derived from IService.
The service T, or null if the service could not be acquired and throwing was set to false.