Esempio n. 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PackageExecutionStateChangedEventArgs"/> class.
 /// </summary>
 /// <param name="package">The package that fired the event.</param>
 /// <param name="oldState">The old execution state of the package.</param>
 /// <param name="newState">The new execution state of the package.</param>
 /// <param name="exception">The exception that occured during discovery of the state change.</param>
 public PackageExecutionStateChangedEventArgs(XboxPackage package, PackageExecutionState oldState, PackageExecutionState newState, Exception exception)
 {
     this.Package   = package;
     this.OldState  = oldState;
     this.NewState  = newState;
     this.Exception = exception;
 }
        /// <summary>
        /// Initializes a new instance of the XboxApplication class.
        /// </summary>
        /// <param name="definition">An object that defines this application.</param>
        /// <param name="package">The package that this application is associated with.</param>
        /// <param name="console">The console that this application is associated with.</param>
        internal XboxApplication(XboxApplicationDefinition definition, XboxPackage package, XboxConsole console)
            : base(console)
        {
            if (definition == null)
            {
                throw new ArgumentNullException("definition");
            }

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

            this.Definition = definition;
            this.Package    = package;
        }
Esempio n. 3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PackageExecutionStateChangedEventArgs"/> class.
 /// </summary>
 /// <param name="package">The package that fired the event.</param>
 /// <param name="oldState">The old execution state of the package.</param>
 /// <param name="newState">The new execution state of the package.</param>
 public PackageExecutionStateChangedEventArgs(XboxPackage package, PackageExecutionState oldState, PackageExecutionState newState)
     : this(package, oldState, newState, null)
 {
     // Nothing needed here.
 }