예제 #1
0
 /// <summary>
 ///     Serializes the specified <see cref="EnvironmentInfo" /> and writes the environment information using the specified
 ///     <see cref="IEnvInfoWriter" />.
 /// </summary>
 /// <param name="writer">The <see cref="IMetricSnapshotWriter" /> used to write the metrics snapshot.</param>
 /// <param name="envInfo">The <see cref="EnvironmentInfo" /> to serilize.</param>
 public void Serialize(IEnvInfoWriter writer, EnvironmentInfo envInfo)
 {
     writer.Write(envInfo);
 }
예제 #2
0
 /// <summary>
 ///     Serializes the specified <see cref="EnvironmentInfo" /> and writes the environment information using the specified
 ///     <see cref="IEnvInfoWriter" />.
 /// </summary>
 /// <param name="writer">The <see cref="IMetricSnapshotWriter" /> used to write the metrics snapshot.</param>
 /// <param name="envInfo">The <see cref="EnvironmentInfo" /> to serilize.</param>
 public async ValueTask Serialize(IEnvInfoWriter writer, EnvironmentInfo envInfo)
 {
     await writer.Write(envInfo);
 }