Fixed #106
This commit is contained in:
Родитель
81432de11d
Коммит
d49349afa7
|
@ -44,6 +44,7 @@
|
|||
<Reference Include="System.Runtime.Remoting" />
|
||||
<Reference Include="System.Security" />
|
||||
<Reference Include="System.Net.Http" />
|
||||
<Reference Include="System.Web" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="..\Version.cs">
|
||||
|
|
|
@ -14,6 +14,7 @@ using System.Net.Http;
|
|||
using System.Net.Http.Headers;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Web;
|
||||
|
||||
namespace RecurringIntegrationsScheduler.Common.Helpers
|
||||
{
|
||||
|
@ -186,23 +187,24 @@ addAuthorization: {addAuthorization}");
|
|||
{
|
||||
var uploadSettings = _settings as UploadJobSettings;
|
||||
var enqueueUri = new UriBuilder(GetAosRequestUri(ConnectorApiActions.EnqueuePath + uploadSettings.ActivityId));
|
||||
var query = HttpUtility.ParseQueryString(enqueueUri.Query);
|
||||
|
||||
if (!string.IsNullOrEmpty(legalEntity))
|
||||
{
|
||||
enqueueUri.Query = "company=" + legalEntity;
|
||||
query["company"] = legalEntity;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (!string.IsNullOrEmpty(uploadSettings.Company))
|
||||
{
|
||||
enqueueUri.Query = "company=" + uploadSettings.Company;
|
||||
query["company"] = uploadSettings.Company;
|
||||
}
|
||||
}
|
||||
|
||||
if (!uploadSettings.IsDataPackage)// Individual file
|
||||
{
|
||||
// entity name is required
|
||||
enqueueUri.Query += "entity=" + uploadSettings.EntityName;
|
||||
query["entity"] = uploadSettings.EntityName;
|
||||
}
|
||||
if (_settings.LogVerbose || Log.IsDebugEnabled)
|
||||
{
|
||||
|
@ -216,6 +218,7 @@ Output:
|
|||
Generated Uri: {enqueueUri.Uri.AbsoluteUri}
|
||||
Generated query: {enqueueUri.Query}");
|
||||
}
|
||||
enqueueUri.Query = query.ToString();
|
||||
return enqueueUri.Uri;
|
||||
}
|
||||
|
||||
|
|
|
@ -2,4 +2,4 @@
|
|||
Licensed under the MIT License. */
|
||||
|
||||
using System.Reflection;
|
||||
[assembly: AssemblyVersion("3.1.1.0")]
|
||||
[assembly: AssemblyVersion("3.1.2.0")]
|
Загрузка…
Ссылка в новой задаче