-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Moved the communication projects; fixed the implementations of IConfi…
…gureIHostApplicationBuilder
- Loading branch information
Showing
100 changed files
with
1,374 additions
and
630 deletions.
There are no files selected for viewing
42 changes: 0 additions & 42 deletions
42
src/Communication.Abstractions/Dgmjr.AspNetCore.Communication.Abstractions.sln
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"sonarlint.connectedMode.project": { | ||
"connectionId": "dgmjr-io", | ||
"projectKey": "dgmjr-io_Dgmjr.Communication" | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
src/Communication/All/Dgmjr.Azure.CommunicationServices.All.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<!-- | ||
* Dgmjr.Azure.CommunicationServices.csproj | ||
* | ||
* Created: 2024-40-29T05:40:02-05:00 | ||
* Modified: 2024-40-29T05:40:02-05:00 | ||
* | ||
* Author: David G. Moore, Jr. <[email protected]> | ||
* | ||
* Copyright © 2024 David G. Moore, Jr., All Rights Reserved | ||
* License: MIT (https://opensource.org/licenses/MIT) | ||
--> | ||
|
||
<Project Sdk="Microsoft.NET.Sdk"> | ||
<PropertyGroup> | ||
<TargetFrameworks>$(TargetedDotNetFrameworks)</TargetFrameworks> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<ProjectReference Include="../Communcation/Dgmjr.Azure.CommunicationServices.csproj" /> | ||
<ProjectReference Include="../Communication.Abstractions/Dgmjr.Azure.CommunicationServices.Abstractions.csproj" /> | ||
</ItemGroup> | ||
</Project> |
70 changes: 70 additions & 0 deletions
70
src/Communication/All/Dgmjr.Azure.CommunicationServices.All.sln
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
Microsoft Visual Studio Solution File, Format Version 12.00 | ||
# | ||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{B283EBC2-E01F-412D-9339-FD56EF114549}" | ||
ProjectSection(SolutionItems) = preProject | ||
..\..\..\Directory.Build.props = ..\..\..\Directory.Build.props | ||
..\..\..\..\..\Directory.Build.targets = ..\..\..\..\..\Directory.Build.targets | ||
..\..\..\..\..\global.json = ..\..\..\..\..\global.json | ||
..\..\..\..\..\Packages\Versions.Local.props = ..\..\..\..\..\Packages\Versions.Local.props | ||
EndProjectSection | ||
EndProject | ||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Dgmjr.Azure.CommunicationServices", "..\Communcation\Dgmjr.Azure.CommunicationServices.csproj", "{3D36177C-5640-4BA3-86FD-7E73A849EC55}" | ||
EndProject | ||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Dgmjr.Azure.CommunicationServices.Abstractions", "..\Communication.Abstractions\Dgmjr.Azure.CommunicationServices.Abstractions.csproj", "{8C663B7A-804D-457E-ADCB-5AAF9390387F}" | ||
EndProject | ||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Dgmjr.Azure.CommunicationServices.All", "Dgmjr.Azure.CommunicationServices.All.csproj", "{F8812B66-F966-497B-9777-752226D538FC}" | ||
EndProject | ||
Global | ||
GlobalSection(SolutionConfigurationPlatforms) = preSolution | ||
Local|Any CPU = Local|Any CPU | ||
Debug|Any CPU = Debug|Any CPU | ||
Testing|Any CPU = Testing|Any CPU | ||
Staging|Any CPU = Staging|Any CPU | ||
Production|Any CPU = Production|Any CPU | ||
Release|Any CPU = Release|Any CPU | ||
EndGlobalSection | ||
GlobalSection(ProjectConfigurationPlatforms) = postSolution | ||
{3D36177C-5640-4BA3-86FD-7E73A849EC55}.Local|Any CPU.ActiveCfg = Local|Any CPU | ||
{3D36177C-5640-4BA3-86FD-7E73A849EC55}.Local|Any CPU.Build.0 = Local|Any CPU | ||
{3D36177C-5640-4BA3-86FD-7E73A849EC55}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
{3D36177C-5640-4BA3-86FD-7E73A849EC55}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
{3D36177C-5640-4BA3-86FD-7E73A849EC55}.Testing|Any CPU.ActiveCfg = Testing|Any CPU | ||
{3D36177C-5640-4BA3-86FD-7E73A849EC55}.Testing|Any CPU.Build.0 = Testing|Any CPU | ||
{3D36177C-5640-4BA3-86FD-7E73A849EC55}.Staging|Any CPU.ActiveCfg = Staging|Any CPU | ||
{3D36177C-5640-4BA3-86FD-7E73A849EC55}.Staging|Any CPU.Build.0 = Staging|Any CPU | ||
{3D36177C-5640-4BA3-86FD-7E73A849EC55}.Production|Any CPU.ActiveCfg = Local|Any CPU | ||
{3D36177C-5640-4BA3-86FD-7E73A849EC55}.Production|Any CPU.Build.0 = Local|Any CPU | ||
{3D36177C-5640-4BA3-86FD-7E73A849EC55}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
{3D36177C-5640-4BA3-86FD-7E73A849EC55}.Release|Any CPU.Build.0 = Release|Any CPU | ||
{8C663B7A-804D-457E-ADCB-5AAF9390387F}.Local|Any CPU.ActiveCfg = Local|Any CPU | ||
{8C663B7A-804D-457E-ADCB-5AAF9390387F}.Local|Any CPU.Build.0 = Local|Any CPU | ||
{8C663B7A-804D-457E-ADCB-5AAF9390387F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
{8C663B7A-804D-457E-ADCB-5AAF9390387F}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
{8C663B7A-804D-457E-ADCB-5AAF9390387F}.Testing|Any CPU.ActiveCfg = Testing|Any CPU | ||
{8C663B7A-804D-457E-ADCB-5AAF9390387F}.Testing|Any CPU.Build.0 = Testing|Any CPU | ||
{8C663B7A-804D-457E-ADCB-5AAF9390387F}.Staging|Any CPU.ActiveCfg = Staging|Any CPU | ||
{8C663B7A-804D-457E-ADCB-5AAF9390387F}.Staging|Any CPU.Build.0 = Staging|Any CPU | ||
{8C663B7A-804D-457E-ADCB-5AAF9390387F}.Production|Any CPU.ActiveCfg = Local|Any CPU | ||
{8C663B7A-804D-457E-ADCB-5AAF9390387F}.Production|Any CPU.Build.0 = Local|Any CPU | ||
{8C663B7A-804D-457E-ADCB-5AAF9390387F}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
{8C663B7A-804D-457E-ADCB-5AAF9390387F}.Release|Any CPU.Build.0 = Release|Any CPU | ||
{F8812B66-F966-497B-9777-752226D538FC}.Local|Any CPU.ActiveCfg = Local|Any CPU | ||
{F8812B66-F966-497B-9777-752226D538FC}.Local|Any CPU.Build.0 = Local|Any CPU | ||
{F8812B66-F966-497B-9777-752226D538FC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
{F8812B66-F966-497B-9777-752226D538FC}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
{F8812B66-F966-497B-9777-752226D538FC}.Testing|Any CPU.ActiveCfg = Testing|Any CPU | ||
{F8812B66-F966-497B-9777-752226D538FC}.Testing|Any CPU.Build.0 = Testing|Any CPU | ||
{F8812B66-F966-497B-9777-752226D538FC}.Staging|Any CPU.ActiveCfg = Staging|Any CPU | ||
{F8812B66-F966-497B-9777-752226D538FC}.Staging|Any CPU.Build.0 = Staging|Any CPU | ||
{F8812B66-F966-497B-9777-752226D538FC}.Production|Any CPU.ActiveCfg = Local|Any CPU | ||
{F8812B66-F966-497B-9777-752226D538FC}.Production|Any CPU.Build.0 = Local|Any CPU | ||
{F8812B66-F966-497B-9777-752226D538FC}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
{F8812B66-F966-497B-9777-752226D538FC}.Release|Any CPU.Build.0 = Release|Any CPU | ||
EndGlobalSection | ||
GlobalSection(SolutionProperties) = preSolution | ||
HideSolutionNode = FALSE | ||
EndGlobalSection | ||
GlobalSection(ExtensibilityGlobals) = postSolution | ||
SolutionGuid = {BA9DF526-DE32-44E2-A6AB-12A4E855F480} | ||
EndGlobalSection | ||
EndGlobal |
File renamed without changes.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
56 changes: 56 additions & 0 deletions
56
src/Communication/Communcation/Dgmjr.Azure.CommunicationServices.sln
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
Microsoft Visual Studio Solution File, Format Version 12.00 | ||
# | ||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{B283EBC2-E01F-412D-9339-FD56EF114549}" | ||
ProjectSection(SolutionItems) = preProject | ||
..\..\..\Directory.Build.props = ..\..\..\Directory.Build.props | ||
..\..\..\..\..\Directory.Build.targets = ..\..\..\..\..\Directory.Build.targets | ||
..\..\..\..\..\global.json = ..\..\..\..\..\global.json | ||
..\..\..\..\..\Packages\Versions.Local.props = ..\..\..\..\..\Packages\Versions.Local.props | ||
EndProjectSection | ||
EndProject | ||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Dgmjr.Azure.CommunicationServices.Abstractions", "..\Communication.Abstractions\Dgmjr.Azure.CommunicationServices.Abstractions.csproj", "{0A4E64AB-8215-49F8-A5E9-64DA4BF48C87}" | ||
EndProject | ||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Dgmjr.Azure.CommunicationServices", "Dgmjr.Azure.CommunicationServices.csproj", "{3D36177C-5640-4BA3-86FD-7E73A849EC55}" | ||
EndProject | ||
Global | ||
GlobalSection(SolutionConfigurationPlatforms) = preSolution | ||
Local|Any CPU = Local|Any CPU | ||
Debug|Any CPU = Debug|Any CPU | ||
Testing|Any CPU = Testing|Any CPU | ||
Staging|Any CPU = Staging|Any CPU | ||
Production|Any CPU = Production|Any CPU | ||
Release|Any CPU = Release|Any CPU | ||
EndGlobalSection | ||
GlobalSection(ProjectConfigurationPlatforms) = postSolution | ||
{0A4E64AB-8215-49F8-A5E9-64DA4BF48C87}.Local|Any CPU.ActiveCfg = Local|Any CPU | ||
{0A4E64AB-8215-49F8-A5E9-64DA4BF48C87}.Local|Any CPU.Build.0 = Local|Any CPU | ||
{0A4E64AB-8215-49F8-A5E9-64DA4BF48C87}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
{0A4E64AB-8215-49F8-A5E9-64DA4BF48C87}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
{0A4E64AB-8215-49F8-A5E9-64DA4BF48C87}.Testing|Any CPU.ActiveCfg = Testing|Any CPU | ||
{0A4E64AB-8215-49F8-A5E9-64DA4BF48C87}.Testing|Any CPU.Build.0 = Testing|Any CPU | ||
{0A4E64AB-8215-49F8-A5E9-64DA4BF48C87}.Staging|Any CPU.ActiveCfg = Staging|Any CPU | ||
{0A4E64AB-8215-49F8-A5E9-64DA4BF48C87}.Staging|Any CPU.Build.0 = Staging|Any CPU | ||
{0A4E64AB-8215-49F8-A5E9-64DA4BF48C87}.Production|Any CPU.ActiveCfg = Local|Any CPU | ||
{0A4E64AB-8215-49F8-A5E9-64DA4BF48C87}.Production|Any CPU.Build.0 = Local|Any CPU | ||
{0A4E64AB-8215-49F8-A5E9-64DA4BF48C87}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
{0A4E64AB-8215-49F8-A5E9-64DA4BF48C87}.Release|Any CPU.Build.0 = Release|Any CPU | ||
{3D36177C-5640-4BA3-86FD-7E73A849EC55}.Local|Any CPU.ActiveCfg = Local|Any CPU | ||
{3D36177C-5640-4BA3-86FD-7E73A849EC55}.Local|Any CPU.Build.0 = Local|Any CPU | ||
{3D36177C-5640-4BA3-86FD-7E73A849EC55}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
{3D36177C-5640-4BA3-86FD-7E73A849EC55}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
{3D36177C-5640-4BA3-86FD-7E73A849EC55}.Testing|Any CPU.ActiveCfg = Testing|Any CPU | ||
{3D36177C-5640-4BA3-86FD-7E73A849EC55}.Testing|Any CPU.Build.0 = Testing|Any CPU | ||
{3D36177C-5640-4BA3-86FD-7E73A849EC55}.Staging|Any CPU.ActiveCfg = Staging|Any CPU | ||
{3D36177C-5640-4BA3-86FD-7E73A849EC55}.Staging|Any CPU.Build.0 = Staging|Any CPU | ||
{3D36177C-5640-4BA3-86FD-7E73A849EC55}.Production|Any CPU.ActiveCfg = Local|Any CPU | ||
{3D36177C-5640-4BA3-86FD-7E73A849EC55}.Production|Any CPU.Build.0 = Local|Any CPU | ||
{3D36177C-5640-4BA3-86FD-7E73A849EC55}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
{3D36177C-5640-4BA3-86FD-7E73A849EC55}.Release|Any CPU.Build.0 = Release|Any CPU | ||
EndGlobalSection | ||
GlobalSection(SolutionProperties) = preSolution | ||
HideSolutionNode = FALSE | ||
EndGlobalSection | ||
GlobalSection(ExtensibilityGlobals) = postSolution | ||
SolutionGuid = {991D96AC-24E8-4358-9F0C-99BE9D5C3BE5} | ||
EndGlobalSection | ||
EndGlobal |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
namespace Dgmjr.AspNetCore.Communication.Sms; | ||
|
||
/// <summary> | ||
/// Represents the result of sending an SMS message. | ||
/// </summary> | ||
public readonly record struct SmsSendResult(Azure.Communication.Sms.SmsSendResult result) | ||
: ISmsSendResult | ||
{ | ||
// public SmsSendResult | ||
// { | ||
// StatusCode = result.HttpStatusCode; | ||
// ErrorMessage = result.ErrorMessage; | ||
// To = (PhoneNumber)result.To; | ||
// } | ||
|
||
public string? ErrorMessage => result.ErrorMessage; | ||
public PhoneNumber To => (PhoneNumber)result.To; | ||
|
||
/// <summary> | ||
/// Gets the status code of the message send result. | ||
/// </summary> | ||
public int StatusCode => result.HttpStatusCode; | ||
|
||
/// <summary> | ||
/// Gets a value indicating whether the SMS message was sent successfully. | ||
/// </summary> | ||
public bool IsSuccess => | ||
StatusCode is SmsSendResponseCode.Success.Id or SmsSendResponseCode.Accepted.Id; | ||
|
||
/// <summary> | ||
/// Gets or sets the response code of the SMS send result. | ||
/// </summary> | ||
public Abstractions.ISmsSendResponseCode Status => SmsSendResponseCode.FromId(StatusCode); | ||
} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes.
Oops, something went wrong.