コード例 #1
0
 /// <summary>
 /// Returns the metadata associated with the specified stream, if the stream is persisted to a store.
 /// </summary>
 /// <typeparam name="T">The type of stream messages</typeparam>
 /// <param name="source">The stream to retrieve metadata about</param>
 /// <param name="metadata">Upon return, this parameter contains the metadata associated with the stream, or null if the stream is not persisted</param>
 /// <returns>True if the stream is persisted to a store, false otherwise</returns>
 public static bool TryGetMetadata <T>(IProducer <T> source, out PsiStreamMetadata metadata)
 {
     return(Store.TryGetMetadata(source.Out.Pipeline, source.Out.Name, out metadata));
 }