Ejemplo n.º 1
0
        /// <summary>
        /// <para>Initializes a new instance of the <see
        /// cref="DeviceSyncBackupStatusChangedDetails" /> class.</para>
        /// </summary>
        /// <param name="desktopDeviceSessionInfo">Device's session logged information.</param>
        /// <param name="previousValue">Previous status of computer backup on the
        /// device.</param>
        /// <param name="newValue">Next status of computer backup on the device.</param>
        public DeviceSyncBackupStatusChangedDetails(DesktopDeviceSessionLogInfo desktopDeviceSessionInfo,
                                                    BackupStatus previousValue,
                                                    BackupStatus newValue)
        {
            if (desktopDeviceSessionInfo == null)
            {
                throw new sys.ArgumentNullException("desktopDeviceSessionInfo");
            }

            if (previousValue == null)
            {
                throw new sys.ArgumentNullException("previousValue");
            }

            if (newValue == null)
            {
                throw new sys.ArgumentNullException("newValue");
            }

            this.DesktopDeviceSessionInfo = desktopDeviceSessionInfo;
            this.PreviousValue            = previousValue;
            this.NewValue = newValue;
        }
Ejemplo n.º 2
0
 /// <summary>
 /// <para>Initializes a new instance of the <see cref="DesktopDeviceSession" />
 /// class.</para>
 /// </summary>
 /// <param name="value">The value</param>
 public DesktopDeviceSession(DesktopDeviceSessionLogInfo value)
 {
     this.Value = value;
 }