Captures current DNX runtime information. This is used by DNXSupport.DNXRun to switch to another runtime if needed.
Пример #1
0
 /// <summary>
 /// Gets the DNX runtime information. Never null but <see cref="DNXRuntimeInformation.IsValid"/>
 /// may be false.
 /// </summary>
 /// <param name="context">The cake context.</param>
 /// <returns>A runtime information object.</returns>
 public static DNXRuntimeInformation GetDNXRuntimeInformation( this ICakeContext context )
 {
     return _dnxRTI ?? (_dnxRTI = LoadDNXRuntimeInformation( context ));
 }
Пример #2
0
 /// <summary>
 /// Gets the DNX runtime information. Never null but <see cref="DNXRuntimeInformation.IsValid"/>
 /// may be false.
 /// </summary>
 /// <param name="context">The cake context.</param>
 /// <returns>A runtime information object.</returns>
 public static DNXRuntimeInformation GetDNXRuntimeInformation(this ICakeContext context)
 {
     return(_dnxRTI ?? (_dnxRTI = LoadDNXRuntimeInformation(context)));
 }