Пример #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="CloudServerObjectBase"/> class.
        /// </summary>
        /// <param name="server">The value for the <see cref="CloudServerObjectBase.Server" /> property.</param>
        /// <param name="sync">The value for the <see cref="CloudServerObjectBase._SYNC" /> field.</param>
        /// <exception cref="ArgumentNullException">
        /// <paramref name="server" /> and/or <paramref name="sync" /> are <see langword="null" />.
        /// </exception>
        protected CloudServerObjectBase(CloudServer server, object sync)
        {
            if (server == null)
            {
                throw new ArgumentNullException("server");
            }

            if (sync == null)
            {
                throw new ArgumentNullException("sync");
            }

            this._SERVER = server;
            this._SYNC   = sync;
        }
Пример #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CloudServerObjectBase"/> class.
 /// </summary>
 /// <param name="server">The value for the <see cref="CloudServerObjectBase.Server" /> property.</param>
 /// <exception cref="ArgumentNullException">
 /// <paramref name="server" /> is <see langword="null" />.
 /// </exception>
 protected CloudServerObjectBase(CloudServer server)
     : this(server, new object())
 {
 }