Esempio n. 1
0
 // Token: 0x060005E8 RID: 1512 RVA: 0x00010460 File Offset: 0x0000F460
 public ItemTimeCollection(ItemTimeCollection item) : base(item)
 {
     this.m_times = new ArrayList(item.m_times.Count);
     foreach (object obj in item.m_times)
     {
         DateTime dateTime = (DateTime)obj;
         this.m_times.Add(dateTime);
     }
 }
Esempio n. 2
0
        // Token: 0x060005E9 RID: 1513 RVA: 0x000104EC File Offset: 0x0000F4EC
        public override object Clone()
        {
            ItemTimeCollection itemTimeCollection = (ItemTimeCollection)base.Clone();

            itemTimeCollection.m_times = new ArrayList(this.m_times.Count);
            foreach (object obj in this.m_times)
            {
                DateTime dateTime = (DateTime)obj;
                itemTimeCollection.m_times.Add(dateTime);
            }
            return(itemTimeCollection);
        }
Esempio n. 3
0
 // Token: 0x0600053C RID: 1340 RVA: 0x0000F054 File Offset: 0x0000E054
 public IdentifiedResult[] DeleteAtTime(Item[] items, object requestHandle, UpdateCompleteEventHandler callback, out IRequest request)
 {
     ItemTimeCollection[] array = new ItemTimeCollection[items.Length];
     for (int i = 0; i < items.Length; i++)
     {
         array[i]              = (ItemTimeCollection)this.Timestamps.Clone();
         array[i].ItemName     = items[i].ItemName;
         array[i].ItemPath     = items[i].ItemPath;
         array[i].ClientHandle = items[i].ClientHandle;
         array[i].ServerHandle = items[i].ServerHandle;
     }
     return(this.m_server.DeleteAtTime(array, requestHandle, callback, out request));
 }
Esempio n. 4
0
 // Token: 0x0600053A RID: 1338 RVA: 0x0000EFC0 File Offset: 0x0000DFC0
 public ResultCollection[] DeleteAtTime(Item[] items)
 {
     ItemTimeCollection[] array = new ItemTimeCollection[items.Length];
     for (int i = 0; i < items.Length; i++)
     {
         array[i]              = (ItemTimeCollection)this.Timestamps.Clone();
         array[i].ItemName     = items[i].ItemName;
         array[i].ItemPath     = items[i].ItemPath;
         array[i].ClientHandle = items[i].ClientHandle;
         array[i].ServerHandle = items[i].ServerHandle;
     }
     return(this.m_server.DeleteAtTime(array));
 }
Esempio n. 5
0
        /// <summary>
        /// Deletes the values at specific times for a for a set of items.
        /// </summary>
        public ResultCollection[] DeleteAtTime(Item[] items)
        {
            ItemTimeCollection[] times = new ItemTimeCollection[items.Length];

            for (int ii = 0; ii < items.Length; ii++)
            {
                times[ii] = (ItemTimeCollection)Timestamps.Clone();

                times[ii].ItemName     = items[ii].ItemName;
                times[ii].ItemPath     = items[ii].ItemPath;
                times[ii].ClientHandle = items[ii].ClientHandle;
                times[ii].ServerHandle = items[ii].ServerHandle;
            }

            return(m_server.DeleteAtTime(times));
        }
Esempio n. 6
0
        /// <summary>
        /// Starts an asynchronous delete values at specific times request for a set of items.
        /// </summary>
        public IdentifiedResult[] DeleteAtTime(
            Item[]                     items,
            object requestHandle,
            UpdateCompleteEventHandler callback,
            out IRequest request)
        {
            ItemTimeCollection[] times = new ItemTimeCollection[items.Length];

            for (int ii = 0; ii < items.Length; ii++)
            {
                times[ii] = (ItemTimeCollection)Timestamps.Clone();

                times[ii].ItemName     = items[ii].ItemName;
                times[ii].ItemPath     = items[ii].ItemPath;
                times[ii].ClientHandle = items[ii].ClientHandle;
                times[ii].ServerHandle = items[ii].ServerHandle;
            }

            return(m_server.DeleteAtTime(times, requestHandle, callback, out request));
        }