simple-transaction | Microservices sample architecture for .Net Core Application | Microservice library
kandi X-RAY | simple-transaction Summary
kandi X-RAY | simple-transaction Summary
Microservices sample architecture for .Net Core Application
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of simple-transaction
simple-transaction Key Features
simple-transaction Examples and Code Snippets
connection.beginTransaction(function(err) {
if (err) { throw err; }
connection.query('INSERT INTO posts SET title=?', title, function (error, results, fields) {
if (error) {
return connection.rollback(function() {
throw error;
Community Discussions
Trending Discussions on simple-transaction
QUESTION
I have tried this github repository - https://github.com/johnph/simple-transaction and sometimes it works (I can login), sometimes it doesn't (I can't login even with correct username and password). When I can't login, it only throws No connection could be made because the target machine actively refused it
or Object reference not set to an instance of an object
. This general message is not helpful to me to troubleshoot.
The project uses Application Insights for logging but I don't want have credit card to register for Azure account. I tried to put breakpoint in the web api projects (Identity.WebApi.Controllers,Authenticate method), but it doesn't reach the breakpoint also.
...ANSWER
Answered 2020-Jan-21 at 13:27QUESTION
I am trying to setup and run this git project - https://github.com/johnph/simple-transaction#WebApi-Endpoints
I have successfully clean up and re-build the whole solution. I have successfully configure to perform EF Core Code-First migration and database was successfully created with 2 tables in it:
- AccountTransaction
- AccountSummary
I could run Transaction.WebApi which opens up http://localhost:60243/swagger/index.html. But, I could not run the other 2 web api projects: Gateway.WebApi or Identity.WebApi. The error occured is This localhost page can’t be found. No webpage was found for the web address:
I could start SimpleBanking.ConsoleApp project. Test data is \src\Services\Identity\Services\UserService.cs. But it returns Object reference not set to an instance of an object. App interrupted. App closed.
ANSWER
Answered 2020-Jan-19 at 21:31I was able to run this project successfully.
Make sure you run 3 servers Gateway.WebApi, Identity and Transaction.
Only then you can run Console app.
In the Console even if you put the incorrect username or password the system still telling you it Login successfully, which misleading. Then when you choose one of the options you get:
Object reference not set to an instance of an object. App interrupted. App closed.
Make sure to monitor the log for errors
QUESTION
I am trying to do Entity Framework Core migration for this project in github - https://github.com/johnph/simple-transaction#WebApi-Endpoints
but hit the above as shown below. I have also set the same project which I do the EF migration as 'startup project'. I tried to search on this error but no avail yet.
I have removed the existing project reference dll, recompiled and re-add the reference. I have also re-install Entity Framework Core and some other Nuget packages. At the end, I can clean and rebuild the whole solution without error.
The only thing I could not get it work is the EF code-first migration which create the database.
...ANSWER
Answered 2020-Jan-19 at 08:39QUESTION
At a high level, I would like to set up an action that has some required inputs and some optional ones. After the user begins, he/she will be prompted for any required inputs that are missing. If/when the required inputs are collected, i would like to ask if the user wants to specify more optional inputs.
The specific use case is a voice-based real estate search. I have some required inputs set up like zip code, price, and number of bedrooms. Then I would like bixby to ask "would you like to refine your search even further?" and if the user says yes, we can ask about number of bathrooms, parking arrangements, and other more niche parameters. I do not want to make all of these required and have to prompt everyone if they want to filter by "pools" or some parameter not widely used. And being voice-based, I do not want to just have it as a checkbox on the screen because someone on the speaker won't be able to use that parameter then.
I have thought of 2 potential solutions but I do not know if they will work (at least without relying on the controls on screen for a voice-based capsule):
1) Make the search into a transaction and then instead of a normal confirmation, try to shoe-horn the confirmation to ask if the user wants to add more refinements. Maybe something like the bank transfer one but a negative confirmation would cause bixby to ask for information that she didnt ask for before: https://bixbydevelopers.com/dev/docs/sample-capsules/walkthroughs/simple-transactional#sample-capsule-walkthrough
2) Make 2 more required inputs, one boolean called "WantsOptionalParameters" and the other called "OptionalParameters" that will be a structure containing all of the optional parameters. Then it would prompt for WantsOptionalParameters like a normal required input, and if that is "True", I can have a sub-action that will ask for each one of the parameters to construct an OptionalParameters object. then we could feed that output into the search. And alternatively, if WantsOptionalParameters is false, we can automatically construct OptionalParameters with all negative responses and feed that into the original action.
Both of these solutions will take a bunch more research and testing and i don't even know if they will work, so i was hoping to call on the wisdom of you guys!
...ANSWER
Answered 2019-Apr-19 at 17:49Here is my take on it for what its worth. Every domain has key inputs that are typically used to start the conversation and optional inputs that can refine the conversation.
Some general ways to start conversation for the real estate example (totally driven by my own experience, perhaps there are more)
- Hows the real estate market in 90210?
- Show me homes under $250K in Los Angeles?
- Show me homes with 4 bedrooms (near me?)
You can club such inputs into an input-group
called RequiredInputs that requires OneOrMoreOf
these parameters to get the capsule started.
You can also collect the optional/niche inputs in another input-group
called OptionalInputs that requires ZeroOrMoreOf
and feed them into your capsule logic
Its also possible that all inputs are equally important and are all Optional! It is totally dependent on the domain and how the capsule developer might handle such inputs.
But in a general sense, once the set of inputs is in and the initial results are shown to the user, the capsule developer then has a great amount of control to
- Shape the future conversation AND
- Highlight capsule capabilities.
So, rather than presenting the user with a set of options, you can control the conversation and offer options that provide most value to the user (and to the capsule developer!)
e.g your capsule is capable of deep analyzing and refining results in a way that no other capsule on the market can do. So, you want to highlight this capability as the first choice via followup
Or You may have a conversation path based on prior experiences and your knowledge of the domain. So, you could say, I can refine the results further by X, Y, Z options.
This scenario is more likely to be useful and less likely to overwhelm (with options) the end user.
Hope this helps!
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install simple-transaction
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page