Skip to content

Conversation

@budgetpreneur
Copy link
Contributor

@budgetpreneur budgetpreneur commented Nov 17, 2021

fix: Replaced BouncyCastle lib with System.Security.Cryptography.Algorithms

Replaced BouncyCastle lib with System.Security.Cryptography.Algorithms

fix: Added try/catch for publish operation to catch exceptions

Added try/catch for publish operation to catch exceptions

crimsonred
crimsonred previously approved these changes Nov 18, 2021
@budgetpreneur budgetpreneur changed the title hmacsha256 refactor Removed BouncyCastle and HMACSHA256 refactor Nov 18, 2021
@budgetpreneur budgetpreneur changed the title Removed BouncyCastle and HMACSHA256 refactor Refactor by replacing BouncyCastle with System.Security.Cryptography.Algorithms Nov 18, 2021
@budgetpreneur budgetpreneur changed the title Refactor by replacing BouncyCastle with System.Security.Cryptography.Algorithms Replaced BouncyCastle lib with System.Security.Cryptography.Algorithms Nov 18, 2021
crimsonred
crimsonred previously approved these changes Nov 26, 2021
}
catch (Exception ex)
{
PNStatusCategory category = PNStatusCategoryHelper.GetPNStatusCategory(400, ex.ToString());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

An Exception should not have the status code of 400

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed it.

}
}

internal async Task<PNResult<PNPublishResult>> Publish(string channel, object message, bool storeInHistory, int ttl, Dictionary<string, object> metaData, Dictionary<string, object> externalQueryParam)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Most of the code is repeated in this method

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah..due to async/await and callback style outputs, some code was repeated due to threading issues. In the current PR only catch block section code was added to handle unknown exception which customer could not share. Remaining code nothing changed.

crimsonred
crimsonred previously approved these changes Dec 16, 2021
@budgetpreneur
Copy link
Contributor Author

@client-engineering-bot release as v5.4.0.0

@budgetpreneur budgetpreneur merged commit 01c0470 into master Dec 16, 2021
@budgetpreneur budgetpreneur deleted the atclen51 branch December 16, 2021 17:52
@github-actions
Copy link

🚀 Release successfully completed 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants