Пример #1
0
        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);
        }
Пример #2
0
        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;
        }
Пример #3
0
 internal void AddRemoval(RemovalEventArgs removal)
 {
     Removals.InternalAdd(removal);
 }
 internal void AddRemoval(RemovalEventArgs operation)
 {
     Removals.InternalAdd(operation);
 }
Пример #5
0
 internal void AddRemoval(RemovalEventArgs removal)
 {
     Removals.InternalAdd(removal);
 }
Пример #6
0
 internal void AddRemoval(RemovalEventArgs operation)
 {
     Removals.InternalAdd(operation);
 }