Skip to content

Commit 9ca273a

Browse files
committed
20230422 update: fix name space error.
1 parent dce56b3 commit 9ca273a

File tree

4 files changed

+57
-37
lines changed

4 files changed

+57
-37
lines changed

Aspose.Cells.Cloud.SDK.Test/Infrastructure/CellsTestCommon.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ namespace Aspose.Cells.Cloud.SDK.Tests
2828
using System;
2929
using System.IO;
3030
using System.Collections.Generic;
31-
using Aspose.Cells.Cloud.SDK.API;
31+
using Aspose.Cells.Cloud.SDK.Api;
3232
using Aspose.Cells.Cloud.SDK.Request;
3333

3434
public class CellsTestCommon
@@ -62,7 +62,7 @@ private string ClientSecret
6262

6363
public CellsTestCommon()
6464
{
65-
this.CellsApi = new CellsApi(this.ClientId, this.ClientSecret, this.BaseUri,this.ApiVersion);
65+
this.CellsApi = new CellsApi(this.ClientId, this.ClientSecret,this.ApiVersion, this.BaseUri);
6666
}
6767

6868
public void UploadFile(string filename , string remotepath , string storageName)

Aspose.Cells.Cloud.SDK/Api/CellsApi.cs

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
using RestSharp;
2929
using Aspose.Cells.Cloud.SDK.Client;
3030
using Aspose.Cells.Cloud.SDK.Model;
31+
using System.Net;
3132

3233
namespace Aspose.Cells.Cloud.SDK.Api
3334
{
@@ -17585,7 +17586,15 @@ public partial class CellsApi : ICellsApi
1758517586
private DateTime _getAccessTokenTime;
1758617587
private bool _needAuth = true;
1758717588

17588-
private string versionURI
17589+
private readonly Invoker.ApiInvoker invoker;
17590+
private readonly string BaseUri;
17591+
private readonly string ClientId;
17592+
private readonly string ClientSecrent;
17593+
private readonly string Version;
17594+
private readonly List<Invoker.IRequestHandler> requestHandlers;
17595+
17596+
17597+
private string versionURI
1758917598
{
1759017599
get
1759117600
{
@@ -17600,8 +17609,8 @@ private string versionURI
1760017609
/// <param name="appSID"></param>
1760117610
/// <param name="appKey"></param>
1760217611
/// <param name="version"></param>
17603-
[Obsolete(" is deprecated.")]
17604-
public CellsApi(String clientId, String clientSecret, String version = "v3.0", String basePath = "https://api.aspose.cloud")
17612+
17613+
public CellsApi(string clientId, string clientSecret, string version = "v3.0", string basePath = "https://api.aspose.cloud")
1760517614
{
1760617615
_clientId = clientId;
1760717616
_clientSecret = clientSecret;
@@ -17636,7 +17645,18 @@ public CellsApi(String clientId, String clientSecret, String version = "v3.0", S
1763617645
{
1763717646
this.Configuration.ApiClient.Configuration = this.Configuration;
1763817647
}
17639-
}
17648+
17649+
17650+
this.Version = version;
17651+
this.ClientSecrent = clientSecret;
17652+
this.ClientId = clientId;
17653+
this.BaseUri = basePath;
17654+
this.requestHandlers = new List<Invoker.IRequestHandler>();
17655+
this.requestHandlers.Add(new Invoker.ApiExceptionRequestHandler());
17656+
this.requestHandlers.Add(new Invoker.JwtTokenRequestHandler(basePath, clientId, clientSecret));
17657+
invoker = new Invoker.ApiInvoker(requestHandlers);
17658+
ServicePointManager.ServerCertificateValidationCallback = delegate { return true; };
17659+
}
1764017660

1764117661

1764217662
/// <summary>

Aspose.Cells.Cloud.SDK/Api/CellsApiPartials2.cs

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
// </summary>
2424
// --------------------------------------------------------------------------------------------------------------------
2525

26-
namespace Aspose.Cells.Cloud.SDK.API
26+
namespace Aspose.Cells.Cloud.SDK.Api
2727
{
2828
using Aspose.Cells.Cloud.SDK.Model;
2929
using Aspose.Cells.Cloud.SDK.Request;
@@ -38,32 +38,32 @@ namespace Aspose.Cells.Cloud.SDK.API
3838
/// </summary>
3939
public partial class CellsApi
4040
{
41-
private readonly Invoker.ApiInvoker invoker;
42-
private readonly string BaseUri;
43-
private readonly string ClientId;
44-
private readonly string ClientSecrent;
45-
private readonly string Version;
46-
private readonly List<Invoker.IRequestHandler> requestHandlers;
47-
48-
/// <summary>
49-
///
50-
/// </summary>
51-
/// <param name="clientId"></param>
52-
/// <param name="clientSecrent"></param>
53-
/// <param name="baseUrl"></param>
54-
/// <param name="version"></param>
55-
public CellsApi(string clientId, string clientSecrent,string baseUrl = "https://api.aspose.cloud", string version ="v3.0")
56-
{
57-
this.Version = version;
58-
this.ClientSecrent = clientSecrent;
59-
this.ClientId = clientId;
60-
this.BaseUri = baseUrl;
61-
this.requestHandlers = new List<Invoker.IRequestHandler>();
62-
this.requestHandlers.Add(new Invoker.ApiExceptionRequestHandler());
63-
this.requestHandlers.Add(new Invoker.JwtTokenRequestHandler(baseUrl, clientId, clientSecrent));
64-
invoker = new Invoker.ApiInvoker(requestHandlers);
65-
ServicePointManager.ServerCertificateValidationCallback = delegate { return true; };
66-
}
41+
//private readonly Invoker.ApiInvoker invoker;
42+
//private readonly string BaseUri;
43+
//private readonly string ClientId;
44+
//private readonly string ClientSecrent;
45+
//private readonly string Version;
46+
//private readonly List<Invoker.IRequestHandler> requestHandlers;
47+
48+
///// <summary>
49+
/////
50+
///// </summary>
51+
///// <param name="clientId"></param>
52+
///// <param name="clientSecrent"></param>
53+
///// <param name="baseUrl"></param>
54+
///// <param name="version"></param>
55+
//public CellsApi(string clientId, string clientSecrent,string baseUrl = "https://api.aspose.cloud", string version ="v3.0")
56+
//{
57+
// this.Version = version;
58+
// this.ClientSecrent = clientSecrent;
59+
// this.ClientId = clientId;
60+
// this.BaseUri = baseUrl;
61+
// this.requestHandlers = new List<Invoker.IRequestHandler>();
62+
// this.requestHandlers.Add(new Invoker.ApiExceptionRequestHandler());
63+
// this.requestHandlers.Add(new Invoker.JwtTokenRequestHandler(baseUrl, clientId, clientSecrent));
64+
// invoker = new Invoker.ApiInvoker(requestHandlers);
65+
// ServicePointManager.ServerCertificateValidationCallback = delegate { return true; };
66+
//}
6767

6868
/// <summary>
6969
/// </summary>

Aspose.Cells.Cloud.SDK/Aspose.Cells.Cloud.SDK.csproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>net4.5.2;netstandard2.0</TargetFrameworks>
4+
<TargetFrameworks>netstandard2.0</TargetFrameworks>
55
<AssemblyName>Aspose.Cells.Cloud.SDK</AssemblyName>
66
<PackageId>Aspose.Cells-Cloud</PackageId>
77
<OutputType>Library</OutputType>
@@ -17,9 +17,9 @@
1717
<RepositoryType>GitHub</RepositoryType>
1818
<Copyright>MIT</Copyright>
1919
<StyleCopTreatErrorsAsWarnings>false</StyleCopTreatErrorsAsWarnings>
20-
<AssemblyVersion>23.4</AssemblyVersion>
21-
<FileVersion>23.4</FileVersion>
22-
<Version>23.4</Version>
20+
<AssemblyVersion>23.4.1</AssemblyVersion>
21+
<FileVersion>23.4.1</FileVersion>
22+
<Version>23.4.1</Version>
2323
</PropertyGroup>
2424

2525
<ItemGroup>

0 commit comments

Comments
 (0)