/// <summary> /// Constructs a RestRequest using bucket/object names from Args. /// Calls overloaded CreateRequest method. /// </summary> /// <param name="args">The child object of BucketArgs class, args with populated values from Input</param> /// <returns>A RestRequest</returns> internal async Task <RestRequest> CreateRequest <T>(BucketArgs <T> args) where T : BucketArgs <T> { this.ArgsCheck(args); RestRequest request = await this.CreateRequest(args.RequestMethod, args.BucketName).ConfigureAwait(false); return(args.BuildRequest(request)); }
/// <summary> /// Constructs a HttpRequestMessageBuilder using bucket/object names from Args. /// Calls overloaded CreateRequest method. /// </summary> /// <param name="args">The direct descendant of BucketArgs class, args with populated values from Input</param> /// <returns>A HttpRequestMessageBuilder</returns> internal async Task <HttpRequestMessageBuilder> CreateRequest <T>(BucketArgs <T> args) where T : BucketArgs <T> { this.ArgsCheck(args); var requestMessageBuilder = await this.CreateRequest(args.RequestMethod, args.BucketName).ConfigureAwait(false); return(args.BuildRequest(requestMessageBuilder)); }