DotNet core 2.0 support

Dear Sir/Madam,

I had a project which need .pure cloud .net core library. I fork the project and found I only need update several files to let normal API calls works. I could send these update to git if you need.

Regards,
Max

1 Like

Could you list the changes you needed to make? I'll add the info to the .NET core ticket I have already.

  1. build/src/PureCloudPlatform.Client.V2/Client/ApiClient.cs
    PrepareRequest method, around line 130:

==== request.AddFile(param.Value.Name, param.Value.Writer, param.Value.FileName, param.Value.ContentType);
==== change to:
request.AddFile(param.Value.Name, param.Value.Writer, param.Value.FileName, param.Value.ContentLength ,param.Value.ContentType);

  1. build/src/PureCloudPlatform.Client.V2/Extensions/AuthExtensions.cs
    RestRequest method (around line 137)

==== request.AddFile(param.Value.Name, param.Value.Writer, param.Value.FileName, param.Value.ContentType);
==== change to
request.AddFile(param.Value.Name, param.Value.Writer, param.Value.FileName, param.Value.ContentLength, param.Value.ContentType);

build/src/PureCloudPlatform.Client.V2/Properties/AssemblyInfo.cs

remove all assembly

Note: I only test with .Net core 2.0.

1 Like

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.