Exemplo n.º 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);
        }
Exemplo n.º 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;
        }
Exemplo n.º 3
0
 internal void AddRemoval(RemovalEventArgs removal)
 {
     Removals.InternalAdd(removal);
 }
 internal void AddRemoval(RemovalEventArgs operation)
 {
     Removals.InternalAdd(operation);
 }
Exemplo n.º 5
0
 internal void AddRemoval(RemovalEventArgs removal)
 {
     Removals.InternalAdd(removal);
 }
Exemplo n.º 6
0
 internal void AddRemoval(RemovalEventArgs operation)
 {
     Removals.InternalAdd(operation);
 }