Skip to content

Commit e8165ce

Browse files
Updated interfaces.
1 parent 8f2923e commit e8165ce

File tree

5 files changed

+316
-2
lines changed

5 files changed

+316
-2
lines changed

M365.API.Helper/Interfaces/IGraphService.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
{
33
public interface IGraphService
44
{
5-
5+
Task<T?> Get<T>(string url);
6+
Task<IEnumerable<T>> GetCollection<T>(string url, IEnumerable<T>? items = null);
7+
Task<T?> Post<T>(string url, string? body = null);
8+
Task<T?> Patch<T>(string url, string body);
9+
Task<T?> Put<T>(string url, string body);
10+
Task Delete(string url);
611
}
712
}

M365.API.Helper/Interfaces/ISharePointService.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
{
33
public interface ISharePointService
44
{
5-
5+
Task<T?> Get<T>(string url, string? contentType = null, string? acceptLanguage = null);
6+
Task<IEnumerable<T>> GetCollection<T>(string url, string? contentType = null, string? acceptLanguage = null, IEnumerable<T>? items = null);
7+
Task<T?> Post<T>(string url, string? body = null, string? contentType = null, string? acceptLanguage = null);
8+
Task<T?> Patch<T>(string url, string body, string? contentType = null, string? acceptLanguage = null);
9+
Task<T?> Put<T>(string url, string body, string? contentType = null, string? acceptLanguage = null);
10+
Task Delete(string url);
611
}
712
}
Lines changed: 304 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,304 @@
1+
{
2+
"runtimeTarget": {
3+
"name": ".NETCoreApp,Version=v8.0",
4+
"signature": ""
5+
},
6+
"compilationOptions": {},
7+
"targets": {
8+
".NETCoreApp,Version=v8.0": {
9+
"M365.API.Helper/1.0.0": {
10+
"dependencies": {
11+
"Azure.Identity": "1.13.2",
12+
"Microsoft.Extensions.Configuration.Abstractions": "9.0.1"
13+
},
14+
"runtime": {
15+
"M365.API.Helper.dll": {}
16+
}
17+
},
18+
"Azure.Core/1.44.1": {
19+
"dependencies": {
20+
"Microsoft.Bcl.AsyncInterfaces": "6.0.0",
21+
"System.ClientModel": "1.1.0",
22+
"System.Diagnostics.DiagnosticSource": "6.0.1",
23+
"System.Memory.Data": "6.0.0",
24+
"System.Numerics.Vectors": "4.5.0",
25+
"System.Text.Encodings.Web": "6.0.0",
26+
"System.Text.Json": "6.0.10",
27+
"System.Threading.Tasks.Extensions": "4.5.4"
28+
},
29+
"runtime": {
30+
"lib/net6.0/Azure.Core.dll": {
31+
"assemblyVersion": "1.44.1.0",
32+
"fileVersion": "1.4400.124.50905"
33+
}
34+
}
35+
},
36+
"Azure.Identity/1.13.2": {
37+
"dependencies": {
38+
"Azure.Core": "1.44.1",
39+
"Microsoft.Identity.Client": "4.67.2",
40+
"Microsoft.Identity.Client.Extensions.Msal": "4.67.2",
41+
"System.Memory": "4.5.5",
42+
"System.Threading.Tasks.Extensions": "4.5.4"
43+
},
44+
"runtime": {
45+
"lib/net8.0/Azure.Identity.dll": {
46+
"assemblyVersion": "1.13.2.0",
47+
"fileVersion": "1.1300.225.6404"
48+
}
49+
}
50+
},
51+
"Microsoft.Bcl.AsyncInterfaces/6.0.0": {
52+
"runtime": {
53+
"lib/netstandard2.1/Microsoft.Bcl.AsyncInterfaces.dll": {
54+
"assemblyVersion": "6.0.0.0",
55+
"fileVersion": "6.0.21.52210"
56+
}
57+
}
58+
},
59+
"Microsoft.Extensions.Configuration.Abstractions/9.0.1": {
60+
"dependencies": {
61+
"Microsoft.Extensions.Primitives": "9.0.1"
62+
},
63+
"runtime": {
64+
"lib/net8.0/Microsoft.Extensions.Configuration.Abstractions.dll": {
65+
"assemblyVersion": "9.0.0.0",
66+
"fileVersion": "9.0.124.61010"
67+
}
68+
}
69+
},
70+
"Microsoft.Extensions.Primitives/9.0.1": {
71+
"runtime": {
72+
"lib/net8.0/Microsoft.Extensions.Primitives.dll": {
73+
"assemblyVersion": "9.0.0.0",
74+
"fileVersion": "9.0.124.61010"
75+
}
76+
}
77+
},
78+
"Microsoft.Identity.Client/4.67.2": {
79+
"dependencies": {
80+
"Microsoft.IdentityModel.Abstractions": "6.35.0",
81+
"System.Diagnostics.DiagnosticSource": "6.0.1"
82+
},
83+
"runtime": {
84+
"lib/net8.0/Microsoft.Identity.Client.dll": {
85+
"assemblyVersion": "4.67.2.0",
86+
"fileVersion": "4.67.2.0"
87+
}
88+
}
89+
},
90+
"Microsoft.Identity.Client.Extensions.Msal/4.67.2": {
91+
"dependencies": {
92+
"Microsoft.Identity.Client": "4.67.2",
93+
"System.Security.Cryptography.ProtectedData": "4.5.0"
94+
},
95+
"runtime": {
96+
"lib/net8.0/Microsoft.Identity.Client.Extensions.Msal.dll": {
97+
"assemblyVersion": "4.67.2.0",
98+
"fileVersion": "4.67.2.0"
99+
}
100+
}
101+
},
102+
"Microsoft.IdentityModel.Abstractions/6.35.0": {
103+
"runtime": {
104+
"lib/net6.0/Microsoft.IdentityModel.Abstractions.dll": {
105+
"assemblyVersion": "6.35.0.0",
106+
"fileVersion": "6.35.0.41201"
107+
}
108+
}
109+
},
110+
"System.ClientModel/1.1.0": {
111+
"dependencies": {
112+
"System.Memory.Data": "6.0.0",
113+
"System.Text.Json": "6.0.10"
114+
},
115+
"runtime": {
116+
"lib/net6.0/System.ClientModel.dll": {
117+
"assemblyVersion": "1.1.0.0",
118+
"fileVersion": "1.100.24.46703"
119+
}
120+
}
121+
},
122+
"System.Diagnostics.DiagnosticSource/6.0.1": {
123+
"dependencies": {
124+
"System.Runtime.CompilerServices.Unsafe": "6.0.0"
125+
}
126+
},
127+
"System.Memory/4.5.5": {},
128+
"System.Memory.Data/6.0.0": {
129+
"dependencies": {
130+
"System.Text.Json": "6.0.10"
131+
},
132+
"runtime": {
133+
"lib/net6.0/System.Memory.Data.dll": {
134+
"assemblyVersion": "6.0.0.0",
135+
"fileVersion": "6.0.21.52210"
136+
}
137+
}
138+
},
139+
"System.Numerics.Vectors/4.5.0": {},
140+
"System.Runtime.CompilerServices.Unsafe/6.0.0": {},
141+
"System.Security.Cryptography.ProtectedData/4.5.0": {
142+
"runtime": {
143+
"lib/netstandard2.0/System.Security.Cryptography.ProtectedData.dll": {
144+
"assemblyVersion": "4.0.3.0",
145+
"fileVersion": "4.6.26515.6"
146+
}
147+
},
148+
"runtimeTargets": {
149+
"runtimes/win/lib/netstandard2.0/System.Security.Cryptography.ProtectedData.dll": {
150+
"rid": "win",
151+
"assetType": "runtime",
152+
"assemblyVersion": "4.0.3.0",
153+
"fileVersion": "4.6.26515.6"
154+
}
155+
}
156+
},
157+
"System.Text.Encodings.Web/6.0.0": {
158+
"dependencies": {
159+
"System.Runtime.CompilerServices.Unsafe": "6.0.0"
160+
}
161+
},
162+
"System.Text.Json/6.0.10": {
163+
"dependencies": {
164+
"System.Runtime.CompilerServices.Unsafe": "6.0.0",
165+
"System.Text.Encodings.Web": "6.0.0"
166+
}
167+
},
168+
"System.Threading.Tasks.Extensions/4.5.4": {}
169+
}
170+
},
171+
"libraries": {
172+
"M365.API.Helper/1.0.0": {
173+
"type": "project",
174+
"serviceable": false,
175+
"sha512": ""
176+
},
177+
"Azure.Core/1.44.1": {
178+
"type": "package",
179+
"serviceable": true,
180+
"sha512": "sha512-YyznXLQZCregzHvioip07/BkzjuWNXogJEVz9T5W6TwjNr17ax41YGzYMptlo2G10oLCuVPoyva62y0SIRDixg==",
181+
"path": "azure.core/1.44.1",
182+
"hashPath": "azure.core.1.44.1.nupkg.sha512"
183+
},
184+
"Azure.Identity/1.13.2": {
185+
"type": "package",
186+
"serviceable": true,
187+
"sha512": "sha512-CngQVQELdzFmsGSWyGIPIUOCrII7nApMVWxVmJCKQQrWxRXcNquCsZ+njRJRnhFUfD+KMAhpjyRCaceE4EOL6A==",
188+
"path": "azure.identity/1.13.2",
189+
"hashPath": "azure.identity.1.13.2.nupkg.sha512"
190+
},
191+
"Microsoft.Bcl.AsyncInterfaces/6.0.0": {
192+
"type": "package",
193+
"serviceable": true,
194+
"sha512": "sha512-UcSjPsst+DfAdJGVDsu346FX0ci0ah+lw3WRtn18NUwEqRt70HaOQ7lI72vy3+1LxtqI3T5GWwV39rQSrCzAeg==",
195+
"path": "microsoft.bcl.asyncinterfaces/6.0.0",
196+
"hashPath": "microsoft.bcl.asyncinterfaces.6.0.0.nupkg.sha512"
197+
},
198+
"Microsoft.Extensions.Configuration.Abstractions/9.0.1": {
199+
"type": "package",
200+
"serviceable": true,
201+
"sha512": "sha512-+4hfFIY1UjBCXFTTOd+ojlDPq6mep3h5Vq5SYE3Pjucr7dNXmq4S/6P/LoVnZFz2e/5gWp/om4svUFgznfULcA==",
202+
"path": "microsoft.extensions.configuration.abstractions/9.0.1",
203+
"hashPath": "microsoft.extensions.configuration.abstractions.9.0.1.nupkg.sha512"
204+
},
205+
"Microsoft.Extensions.Primitives/9.0.1": {
206+
"type": "package",
207+
"serviceable": true,
208+
"sha512": "sha512-bHtTesA4lrSGD1ZUaMIx6frU3wyy0vYtTa/hM6gGQu5QNrydObv8T5COiGUWsisflAfmsaFOe9Xvw5NSO99z0g==",
209+
"path": "microsoft.extensions.primitives/9.0.1",
210+
"hashPath": "microsoft.extensions.primitives.9.0.1.nupkg.sha512"
211+
},
212+
"Microsoft.Identity.Client/4.67.2": {
213+
"type": "package",
214+
"serviceable": true,
215+
"sha512": "sha512-37t0TfekfG6XM8kue/xNaA66Qjtti5Qe1xA41CK+bEd8VD76/oXJc+meFJHGzygIC485dCpKoamG/pDfb9Qd7Q==",
216+
"path": "microsoft.identity.client/4.67.2",
217+
"hashPath": "microsoft.identity.client.4.67.2.nupkg.sha512"
218+
},
219+
"Microsoft.Identity.Client.Extensions.Msal/4.67.2": {
220+
"type": "package",
221+
"serviceable": true,
222+
"sha512": "sha512-DKs+Lva6csEUZabw+JkkjtFgVmcXh4pJeQy5KH5XzPOaKNoZhAMYj1qpKd97qYTZKXIFH12bHPk0DA+6krw+Cw==",
223+
"path": "microsoft.identity.client.extensions.msal/4.67.2",
224+
"hashPath": "microsoft.identity.client.extensions.msal.4.67.2.nupkg.sha512"
225+
},
226+
"Microsoft.IdentityModel.Abstractions/6.35.0": {
227+
"type": "package",
228+
"serviceable": true,
229+
"sha512": "sha512-xuR8E4Rd96M41CnUSCiOJ2DBh+z+zQSmyrYHdYhD6K4fXBcQGVnRCFQ0efROUYpP+p0zC1BLKr0JRpVuujTZSg==",
230+
"path": "microsoft.identitymodel.abstractions/6.35.0",
231+
"hashPath": "microsoft.identitymodel.abstractions.6.35.0.nupkg.sha512"
232+
},
233+
"System.ClientModel/1.1.0": {
234+
"type": "package",
235+
"serviceable": true,
236+
"sha512": "sha512-UocOlCkxLZrG2CKMAAImPcldJTxeesHnHGHwhJ0pNlZEvEXcWKuQvVOER2/NiOkJGRJk978SNdw3j6/7O9H1lg==",
237+
"path": "system.clientmodel/1.1.0",
238+
"hashPath": "system.clientmodel.1.1.0.nupkg.sha512"
239+
},
240+
"System.Diagnostics.DiagnosticSource/6.0.1": {
241+
"type": "package",
242+
"serviceable": true,
243+
"sha512": "sha512-KiLYDu2k2J82Q9BJpWiuQqCkFjRBWVq4jDzKKWawVi9KWzyD0XG3cmfX0vqTQlL14Wi9EufJrbL0+KCLTbqWiQ==",
244+
"path": "system.diagnostics.diagnosticsource/6.0.1",
245+
"hashPath": "system.diagnostics.diagnosticsource.6.0.1.nupkg.sha512"
246+
},
247+
"System.Memory/4.5.5": {
248+
"type": "package",
249+
"serviceable": true,
250+
"sha512": "sha512-XIWiDvKPXaTveaB7HVganDlOCRoj03l+jrwNvcge/t8vhGYKvqV+dMv6G4SAX2NoNmN0wZfVPTAlFwZcZvVOUw==",
251+
"path": "system.memory/4.5.5",
252+
"hashPath": "system.memory.4.5.5.nupkg.sha512"
253+
},
254+
"System.Memory.Data/6.0.0": {
255+
"type": "package",
256+
"serviceable": true,
257+
"sha512": "sha512-ntFHArH3I4Lpjf5m4DCXQHJuGwWPNVJPaAvM95Jy/u+2Yzt2ryiyIN04LAogkjP9DeRcEOiviAjQotfmPq/FrQ==",
258+
"path": "system.memory.data/6.0.0",
259+
"hashPath": "system.memory.data.6.0.0.nupkg.sha512"
260+
},
261+
"System.Numerics.Vectors/4.5.0": {
262+
"type": "package",
263+
"serviceable": true,
264+
"sha512": "sha512-QQTlPTl06J/iiDbJCiepZ4H//BVraReU4O4EoRw1U02H5TLUIT7xn3GnDp9AXPSlJUDyFs4uWjWafNX6WrAojQ==",
265+
"path": "system.numerics.vectors/4.5.0",
266+
"hashPath": "system.numerics.vectors.4.5.0.nupkg.sha512"
267+
},
268+
"System.Runtime.CompilerServices.Unsafe/6.0.0": {
269+
"type": "package",
270+
"serviceable": true,
271+
"sha512": "sha512-/iUeP3tq1S0XdNNoMz5C9twLSrM/TH+qElHkXWaPvuNOt+99G75NrV0OS2EqHx5wMN7popYjpc8oTjC1y16DLg==",
272+
"path": "system.runtime.compilerservices.unsafe/6.0.0",
273+
"hashPath": "system.runtime.compilerservices.unsafe.6.0.0.nupkg.sha512"
274+
},
275+
"System.Security.Cryptography.ProtectedData/4.5.0": {
276+
"type": "package",
277+
"serviceable": true,
278+
"sha512": "sha512-wLBKzFnDCxP12VL9ANydSYhk59fC4cvOr9ypYQLPnAj48NQIhqnjdD2yhP8yEKyBJEjERWS9DisKL7rX5eU25Q==",
279+
"path": "system.security.cryptography.protecteddata/4.5.0",
280+
"hashPath": "system.security.cryptography.protecteddata.4.5.0.nupkg.sha512"
281+
},
282+
"System.Text.Encodings.Web/6.0.0": {
283+
"type": "package",
284+
"serviceable": true,
285+
"sha512": "sha512-Vg8eB5Tawm1IFqj4TVK1czJX89rhFxJo9ELqc/Eiq0eXy13RK00eubyU6TJE6y+GQXjyV5gSfiewDUZjQgSE0w==",
286+
"path": "system.text.encodings.web/6.0.0",
287+
"hashPath": "system.text.encodings.web.6.0.0.nupkg.sha512"
288+
},
289+
"System.Text.Json/6.0.10": {
290+
"type": "package",
291+
"serviceable": true,
292+
"sha512": "sha512-NSB0kDipxn2ychp88NXWfFRFlmi1bst/xynOutbnpEfRCT9JZkZ7KOmF/I/hNKo2dILiMGnqblm+j1sggdLB9g==",
293+
"path": "system.text.json/6.0.10",
294+
"hashPath": "system.text.json.6.0.10.nupkg.sha512"
295+
},
296+
"System.Threading.Tasks.Extensions/4.5.4": {
297+
"type": "package",
298+
"serviceable": true,
299+
"sha512": "sha512-zteT+G8xuGu6mS+mzDzYXbzS7rd3K6Fjb9RiZlYlJPam2/hU7JCBZBVEcywNuR+oZ1ncTvc/cq0faRr3P01OVg==",
300+
"path": "system.threading.tasks.extensions/4.5.4",
301+
"hashPath": "system.threading.tasks.extensions.4.5.4.nupkg.sha512"
302+
}
303+
}
304+
}
35 KB
Binary file not shown.
17.5 KB
Binary file not shown.

0 commit comments

Comments
 (0)