Beispiel #1
0
        /// <summary>
        /// Registers this application as singleton.
        /// </summary>
        /// <param name="key">The key.</param>
        /// <param name="scope">The scope.</param>
        /// <returns></returns>
        public ApplicationBootstrapper RegisterAsSingleton(String key, SingletonApplicationScope scope)
        {
            this.key       = key;
            this.singleton = scope;

            return(this);
        }
 /// <summary>
 /// Initializes a new instance of the <see cref="SingletonApplicationStartupArgs"/> class.
 /// </summary>
 /// <param name="scope">The scope.</param>
 public SingletonApplicationStartupArgs(SingletonApplicationScope scope)
 {
     this.Scope        = scope;
     this.AllowStartup = true;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="SingletonApplicationStartupArgs"/> class.
 /// </summary>
 /// <param name="scope">The scope.</param>
 public SingletonApplicationStartupArgs( SingletonApplicationScope scope )
 {
     this.Scope = scope;
     this.AllowStartup = true;
 }