/// <summary>
 /// Initializes a new instance of the PSWindowsEventLogDataSource class.
 /// </summary>
 /// <param name="windowsEventLogDataSource">The WindowsEventLogDataSource to wrap.</param>
 public PSWindowsEventLogDataSource(WindowsEventLogDataSource windowsEventLogDataSource)
 {
     Streams = windowsEventLogDataSource.Streams?.Select(x => x).ToList();
     ScheduledTransferPeriod = windowsEventLogDataSource.ScheduledTransferPeriod;
     XPathQueries            = windowsEventLogDataSource.XPathQueries?.Select(x => x).ToList();
     Name = windowsEventLogDataSource.Name;
 }
Exemplo n.º 2
0
 private static void AreEqual(WindowsEventLogDataSource exp, WindowsEventLogDataSource act)
 {
     if (exp != null)
     {
         Assert.Equal(exp.Name, act.Name);
         Assert.Equal(exp.ScheduledTransferPeriod, act.ScheduledTransferPeriod);
         Assert.Equal(exp.Streams.ToJson(), act.Streams.ToJson());
         Assert.Equal(exp.XPathQueries.ToJson(), act.XPathQueries.ToJson());
     }
 }
 /// <summary>
 /// Initializes a new instance of the PSWindowsEventLogDataSource class.
 /// </summary>
 /// <param name="windowsEventLogDataSource">The WindowsEventLogDataSource to wrap.</param>
 public PSWindowsEventLogDataSource(WindowsEventLogDataSource windowsEventLogDataSource)
 {
     Streams = windowsEventLogDataSource.Streams?.Select(x => x).ToList();
     XPathQueries = windowsEventLogDataSource.XPathQueries?.Select(x => x).ToList();
     Name = windowsEventLogDataSource.Name;
 }