ServiceContext public struct ServiceContext Represents the context of a service. Documentation Code public readonly Expression ServiceExpression The expression that describes the instantiation of the service. public readonly ServiceRegistration ServiceRegistration The registration of the service. public ServiceContext(Expression serviceExpression, ServiceRegistration serviceRegistration) Constructs a ServiceContext.