Пример #1
0
 /// <summary>
 /// Close logon event represent by this object.
 /// </summary>
 /// <param name="adapter">The SOAP proxy adapter</param>
 public void Close(LogonEventAdapter adapter)
 {
     if (EventID == 0)
     {
         throw new ArgumentException();
     }
     adapter.Close(this);
 }
Пример #2
0
 /// <summary>
 /// Add logon event and set the EventID.
 /// </summary>
 /// <param name="adapter">The SOAP proxy adapter</param>
 public void Add(LogonEventAdapter adapter)
 {
     if (HwAddress == null)
     {
         Network network = new Network();
         HwAddress   = network.HwAddress;
         Workstation = network.Computer;
     }
     EventID = adapter.Add(this);
 }
Пример #3
0
 /// <summary>
 /// Find all logon events matching the properties of this object.
 /// </summary>
 /// <param name="adapter">The SOAP proxy adapter</param>
 /// <param name="match">The match preferences.</param>
 /// <returns>Array of LogonEvent objects.</returns>
 public List <LogonEvent> Find(LogonEventAdapter adapter, LogonEventMatch match)
 {
     return(adapter.Find(this, match));
 }