public int IndexOf(ReplicationOperation operation)
        {
            if (operation == null)
                throw new ArgumentNullException("operation");

            return InnerList.IndexOf(operation);
        }
        public bool Contains(ReplicationOperation operation)
        {
            if (operation == null)
                throw new ArgumentNullException("operation");

            return InnerList.Contains(operation);
        }
        internal ReplicationOperation GetFirstOperation()
        {
            ReplicationOperation item = (ReplicationOperation)base.InnerList[0];

            base.InnerList.RemoveAt(0);
            return(item);
        }
        public int IndexOf(ReplicationOperation operation)
        {
            Contract.Requires(operation != null);
            Contract.Ensures(Contract.Result <int>() >= -1);
            Contract.Ensures(Contract.Result <int>() < this.Count);

            return(default(int));
        }
Exemple #5
0
        internal ReplicationOperation GetFirstOperation()
        {
            ReplicationOperation op = (ReplicationOperation)InnerList[0] !;

            InnerList.RemoveAt(0);

            return(op);
        }
Exemple #6
0
 public bool Contains(ReplicationOperation operation)
 {
     if (operation == null)
     {
         throw new ArgumentNullException("operation");
     }
     return(base.InnerList.Contains(operation));
 }
Exemple #7
0
 public int IndexOf(ReplicationOperation operation)
 {
     if (operation == null)
     {
         throw new ArgumentNullException("operation");
     }
     return(base.InnerList.IndexOf(operation));
 }
    public int IndexOf(ReplicationOperation operation)
    {
      Contract.Requires(operation != null);
      Contract.Ensures(Contract.Result<int>() >= -1);
      Contract.Ensures(Contract.Result<int>() < this.Count);

      return default(int);
    }
		internal void AddHelper(DS_REPL_PENDING_OPS operations, IntPtr info)
		{
			int num = operations.cNumPendingOps;
			for (int i = 0; i < num; i++)
			{
				IntPtr intPtr = (IntPtr)((long)info + (long)Marshal.SizeOf(typeof(DS_REPL_PENDING_OPS)) + (long)(i * Marshal.SizeOf(typeof(DS_REPL_OP))));
				ReplicationOperation replicationOperation = new ReplicationOperation(intPtr, this.server, this.nameTable);
				this.Add(replicationOperation);
			}
		}
 internal void AddHelper(DS_REPL_PENDING_OPS operations, IntPtr info)
 {
     int cNumPendingOps = operations.cNumPendingOps;
     IntPtr zero = IntPtr.Zero;
     for (int i = 0; i < cNumPendingOps; i++)
     {
         zero = (IntPtr) ((((long) info) + Marshal.SizeOf(typeof(DS_REPL_PENDING_OPS))) + (i * Marshal.SizeOf(typeof(DS_REPL_OP))));
         ReplicationOperation operation = new ReplicationOperation(zero, this.server, this.nameTable);
         this.Add(operation);
     }
 }
		public bool Contains(ReplicationOperation operation)
		{
			if (operation != null)
			{
				return base.InnerList.Contains(operation);
			}
			else
			{
				throw new ArgumentNullException("operation");
			}
		}
        internal void AddHelper(DS_REPL_PENDING_OPS operations, IntPtr info)
        {
            int num = operations.cNumPendingOps;

            for (int i = 0; i < num; i++)
            {
                IntPtr intPtr = (IntPtr)((long)info + (long)Marshal.SizeOf(typeof(DS_REPL_PENDING_OPS)) + (long)(i * Marshal.SizeOf(typeof(DS_REPL_OP))));
                ReplicationOperation replicationOperation = new ReplicationOperation(intPtr, this.server, this.nameTable);
                this.Add(replicationOperation);
            }
        }
		public int IndexOf(ReplicationOperation operation)
		{
			if (operation != null)
			{
				return base.InnerList.IndexOf(operation);
			}
			else
			{
				throw new ArgumentNullException("operation");
			}
		}
Exemple #14
0
        internal void AddHelper(DS_REPL_PENDING_OPS operations, IntPtr info)
        {
            int    cNumPendingOps = operations.cNumPendingOps;
            IntPtr zero           = IntPtr.Zero;

            for (int i = 0; i < cNumPendingOps; i++)
            {
                zero = (IntPtr)((((long)info) + Marshal.SizeOf(typeof(DS_REPL_PENDING_OPS))) + (i * Marshal.SizeOf(typeof(DS_REPL_OP))));
                ReplicationOperation operation = new ReplicationOperation(zero, this.server, this.nameTable);
                this.Add(operation);
            }
        }
        internal void AddHelper(DS_REPL_PENDING_OPS operations, IntPtr info)
        {
            // get the count
            int count = operations.cNumPendingOps;

            IntPtr addr = (IntPtr)0;

            for (int i = 0; i < count; i++)
            {
                addr = IntPtr.Add(info, Marshal.SizeOf(typeof(DS_REPL_PENDING_OPS)) + i * Marshal.SizeOf(typeof(DS_REPL_OP)));
                ReplicationOperation managedOperation = new ReplicationOperation(addr, _server, _nameTable);

                Add(managedOperation);
            }
        }
Exemple #16
0
        internal void AddHelper(DS_REPL_PENDING_OPS operations, IntPtr info)
        {
            // get the count
            int count = operations.cNumPendingOps;

            IntPtr addr = (IntPtr)0;

            for (int i = 0; i < count; i++)
            {
                addr = IntPtr.Add(info, Marshal.SizeOf(typeof(DS_REPL_PENDING_OPS)) + i * Marshal.SizeOf(typeof(DS_REPL_OP)));
                ReplicationOperation managedOperation = new ReplicationOperation(addr, _server, _nameTable);

                Add(managedOperation);
            }
        }
		public int IndexOf (ReplicationOperation operation)
		{
			throw new NotImplementedException ();
		}
 private int Add(ReplicationOperation operation)
 {
     return base.InnerList.Add(operation);
 }
		public void CopyTo (ReplicationOperation[] operations, int index)
		{
			throw new NotImplementedException ();
		}
 private int Add(ReplicationOperation operation)
 {
     return(base.InnerList.Add(operation));
 }
		private int Add (ReplicationOperation operation)
		{
			throw new NotImplementedException ();
		}
 private int Add(ReplicationOperation operation)
 {
     throw new NotImplementedException();
 }
 public void CopyTo(ReplicationOperation[] operations, int index)
 {
     base.InnerList.CopyTo(operations, index);
 }
        public bool Contains(ReplicationOperation operation)
        {
            Contract.Requires(operation != null);

            return(default(bool));
        }
    public bool Contains(ReplicationOperation operation)
    {
      Contract.Requires(operation != null);

      return default(bool);
    }
    public void CopyTo(ReplicationOperation[] operations, int index)
    {
      Contract.Requires(operations != null);
      Contract.Requires(index >= 0);

    }
Exemple #27
0
 private int Add(ReplicationOperation operation) => InnerList.Add(operation);
 public int IndexOf(ReplicationOperation operation)
 {
     throw new NotImplementedException();
 }
 public bool Contains(ReplicationOperation operation)
 {
     throw new NotImplementedException();
 }
		public bool Contains (ReplicationOperation operation)
		{
			throw new NotImplementedException ();
		}