internal static RemovalEventArgs Read(CustomLogReader areader) { RemovalEventArgs args = new RemovalEventArgs(); using (ElementLogReader reader = new ElementLogReader(areader)) { while (reader.Read(0)) { if (reader.GetEmptyElementValue("filename", out string value)) { args.FileName = value; } else if (SessionRemoteException.IsResult(reader)) { args.Error = SessionRemoteException.ReadResult(reader); } } } return(args); }
internal static RemovalEventArgs Read(CustomLogReader areader) { RemovalEventArgs args = new RemovalEventArgs(); using (ElementLogReader reader = new ElementLogReader(areader)) { while (reader.Read(0)) { string value; if (reader.GetEmptyElementValue("filename", out value)) { args.FileName = value; } else if (SessionRemoteException.IsResult(reader)) { args.Error = SessionRemoteException.ReadResult(reader); } } } return args; }
internal void AddRemoval(RemovalEventArgs removal) { Removals.InternalAdd(removal); }
internal void AddRemoval(RemovalEventArgs operation) { Removals.InternalAdd(operation); }