示例#1
0
        /// <summary>
        /// Launches the given package with command line arguments.
        /// </summary>
        /// <param name="systemIpAddress">The "System Ip" address of the Xbox kit.</param>
        /// <param name="application">The package to be launched.</param>
        /// <param name="arguments">Command line arguments to pass to the package executable.</param>
        public void LaunchApplication(string systemIpAddress, XboxApplicationDefinition application, string arguments)
        {
            this.ThrowIfDisposed();
            this.ThrowIfInvalidSystemIpAddress(systemIpAddress);

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

            this.PerformXdkAction(
                systemIpAddress,
                () => this.LaunchApplicationImpl(systemIpAddress, application, arguments),
                string.Format(CultureInfo.InvariantCulture, "Failed to launch package with AUMID: {0} and arguments: {1}", application.Aumid, arguments));
        }
示例#2
0
        /// <summary>
        /// Snaps the given application.
        /// </summary>
        /// <param name="systemIpAddress">The "System Ip" address of the Xbox kit.</param>
        /// <param name="application">The application to be snapped.</param>
        public void SnapApplication(string systemIpAddress, XboxApplicationDefinition application)
        {
            this.ThrowIfDisposed();
            this.ThrowIfInvalidSystemIpAddress(systemIpAddress);

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

            this.PerformXdkAction(
                systemIpAddress,
                () => this.SnapApplicationImpl(systemIpAddress, application),
                string.Format(CultureInfo.InvariantCulture, "Failed to snap application with AUMID: {0}", application.Aumid));
        }
        /// <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;
        }
示例#4
0
 /// <summary>
 /// Provides the adapter-specific implementation of the "SnapApplication" method.
 /// </summary>
 /// <param name="systemIpAddress">The "System Ip" address of the Xbox kit.</param>
 /// <param name="application">The application to be launched.</param>
 protected virtual void SnapApplicationImpl(string systemIpAddress, XboxApplicationDefinition application)
 {
     throw new XboxConsoleFeatureNotSupportedException(NotSupportedMessage);
 }