kintscher.dev.CleanArchitecture.Core
1.0.7
dotnet add package kintscher.dev.CleanArchitecture.Core --version 1.0.7
NuGet\Install-Package kintscher.dev.CleanArchitecture.Core -Version 1.0.7
<PackageReference Include="kintscher.dev.CleanArchitecture.Core" Version="1.0.7" />
<PackageVersion Include="kintscher.dev.CleanArchitecture.Core" Version="1.0.7" />
<PackageReference Include="kintscher.dev.CleanArchitecture.Core" />
paket add kintscher.dev.CleanArchitecture.Core --version 1.0.7
#r "nuget: kintscher.dev.CleanArchitecture.Core, 1.0.7"
#:package kintscher.dev.CleanArchitecture.Core@1.0.7
#addin nuget:?package=kintscher.dev.CleanArchitecture.Core&version=1.0.7
#tool nuget:?package=kintscher.dev.CleanArchitecture.Core&version=1.0.7
Clean Architecture Core
These classes are intended to be used in the Clean Architecure software design pattern.
Copyright 2023 - Michael Kintscher
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net7.0
- No dependencies.
NuGet packages (1)
Showing the top 1 NuGet packages that depend on kintscher.dev.CleanArchitecture.Core:
| Package | Downloads |
|---|---|
|
kintscher.dev.CleanArchitecture.Windows
A set of Windows-specific classes to implement Clean Architecture. |
GitHub repositories
This package is not used by any popular GitHub repositories.
Fixed bug from 1.0.6 where the OAuthResponseReceived event was internal instead of public.
From 1.0.6: Added support for loopback IP addresses to the OAuthApi base class.
To use this, call StartOAuthListener to initiate a listener on the loopback IP address (which your inheriting class should provide into the base class through the constructor as the OAuth Redirect URI). Do this prior to presenting the UI and/or redirecting the user to the OAuth endpoint, as the user's actions there will trigger the response that needs to be listened for.
The OAuthApi base class will raise the OAuthResponseReceived event when the listener receives a response from the OAuth endpoint (including an OAuth code), and then immediately proceed to exchange the code for a token at the OAuth token endpoint. The OAuth Api base class will raise the Authorized event when a token has been received.
After the Authorized event is raised, the GetToken and GetCachedTokenData methods will both return cached token data including the newly authorized account. At this point calls can now be made to the API with the authorized account ID.
Note that the OAuthApi class does not support persistance on its own; the token data will need to be retrieved using GetCachedTokenData and then saved locally if it is to persist between user sessions.
Optionally, call CancelOAuthListener to stop the listener on the loopback IP address if, for example, the user cancels the authorization part-way through.