Exemple #1
0
        /// <summary>
        /// Initializes a new instance of the class <see cref="ResolveSetup{TResolved}"/>.
        /// </summary>
        /// <param name="args">Arguments for initialization of <see cref="ResolveSetup{TResolved}"/>.</param>
        public ResolveSetup(ResolveSetupArgs args)
        {
            Contract.Requires <ArgumentNullException>(args != null);

            this._resolveOpen  = args.ResolveOpen;
            this._playerSender = args.PlayerSender;
        }
Exemple #2
0
 /// <summary>
 /// Creates the service that implements setup of objects resolved via an URI.
 /// </summary>
 /// <typeparam name="TResolved">The object's type expected from URI's resolution.</typeparam>
 /// <param name="args">Arguments for initialization <see cref="ResolveSetup{TResolved}"/>.</param>
 /// <returns>The service that allows to setup and open an object resolved via an URI.</returns>
 public IShellResolveSetup <TResolved> Create <TResolved>(ResolveSetupArgs args)
 {
     return(this._diContainer.Resolve <IShellResolveSetup <TResolved> >(TypedParameter.From(args)));
 }
 /// <summary>
 /// Creates the service that implements setup of objects resolved via an URI.
 /// </summary>
 /// <typeparam name="TResolved">The object's type expected from URI's resolution.</typeparam>
 /// <param name="args">Arguments for initialization <see cref="ResolveSetup{TResolved}"/>.</param>
 /// <returns>The service that allows to setup and open an object resolved via an URI.</returns>
 public IShellResolveSetup <TResolved> Create <TResolved>(ResolveSetupArgs args)
 {
     return(new ResolveSetup <TResolved>(args));
 }
Exemple #4
0
        public IShellResolveSetup <TResolved> Create <TResolved>(ResolveSetupArgs args)
        {
            Contract.Ensures(Contract.Result <IShellResolveSetup <TResolved> >() != null);

            return(default(IShellResolveSetup <TResolved>));
        }