List all dynamic streams in the repository.
- See also
- AcDepots constructor
namespace ListDynStreams
{
class Program
{
static int Main()
{
Task<bool> init = listDynStreamsAsync();
return (init.Result) ? 0 : 1;
}
public static async Task<bool> listDynStreamsAsync()
{
AcDepots depots = new AcDepots(dynamicOnly: true);
if (!(await depots.initAsync()))
return false;
foreach (AcStream
stream in depots.SelectMany(d => d.Streams)
.OrderBy(s => s.Depot).ThenBy(s => s))
{
Console.WriteLine(stream);
}
return true;
}
}
}