示例#1
0
		/// <summary>
		/// Initializes a new instance of the <see cref="ServerContext" /> class.
		/// </summary>
		/// <param name="settings">The settings.</param>
		/// <param name="helper">The helper.</param>
		/// <param name="client">The client.</param>
		/// <exception cref="ArgumentNullException"></exception>
		public ServerContext(IServerSettings settings, ICreateHelper helper, IHttpClient client)
		{
			if (settings == null)
			{
				throw new ArgumentNullException(nameof(settings));
			}

			if (helper == null)
			{
				throw new ArgumentNullException(nameof(helper));
			}

			if (client == null)
			{
				throw new ArgumentNullException(nameof(client));
			}

			this.authzCookieName = "authz";
			this.settings = settings;
			this.helper = helper;
			this.client = client;
		}
示例#2
0
 public BucketCreator(ICreateHelper tool)
     : base(tool)
 {
 }
示例#3
0
 public CreateNewPool(ICreateHelper tool)
     : base(tool)
 {
 }
示例#4
0
 public CreateNewJob(ICreateHelper tool)
     : base(tool)
 {
 }
示例#5
0
 public AApiObjectCreator(ICreateHelper tool)
 {
     Tools = tool;
 }
示例#6
0
 public CreateNewTask(ICreateHelper tool)
     : base(tool)
 {
 }
示例#7
0
		/// <summary>
		/// Initializes a new instance of the <see cref="ServerContext"/> class.
		/// </summary>
		/// <param name="settings">The settings.</param>
		/// <param name="helper">The helper.</param>
		public ServerContext(IServerSettings settings, ICreateHelper helper) : this(settings, helper, new ServerHttpClient())
		{
		}