private async Task <IRequestSender> GetRequestSenderAsync() { // Create request sender Assembly assembly = Assembly.Load(this.specifications.RequestSenderAssemblyName); Type type = assembly.GetType(this.specifications.RequestSenderTypeName); IRequestSender sender = (IRequestSender)Activator.CreateInstance(type); RequestSenderSpecifications requestSenderSpecifications = new RequestSenderSpecifications() { NumItems = this.specifications.NumItems, OperationDataSizeInBytes = this.specifications.OperationDataSizeInBytes }; // Initialize request sender await sender.InitializeAsync(requestSenderSpecifications); return(sender); }