This file contains hidden or 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
using System; | |
using System.Threading; | |
using System.Threading.Tasks; | |
using System.Threading.Channels; | |
using Microsoft.Extensions.Logging; | |
using Microsoft.Extensions.Hosting; | |
namespace apiwithqueue.hostedservice { | |
public class QueuedHostedService : BackgroundService |
This file contains hidden or 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
using System; | |
using System.Text; | |
using System.Net; | |
using System.Net.Sockets; | |
using Org.BouncyCastle.Tls.Crypto.Impl.BC; | |
using Org.BouncyCastle.Security; | |
using Org.BouncyCastle.Tls; | |
class CustomTlsClient : DefaultTlsClient |
This file contains hidden or 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
using System; | |
using Oracle.ManagedDataAccess.Client; | |
using Polly; | |
namespace frontend.ExtensionMethods | |
{ | |
public static class Extensions | |
{ | |
const int retryTimes = 3; |
This file contains hidden or 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
on: | |
push: | |
branches: | |
- master | |
env: | |
NODE_VERSION: '12.x' # set this to the node version to use | |
jobs: | |
build-and-deploy: |
This file contains hidden or 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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using Bogus; | |
namespace CSVGeneration | |
{ | |
public class Card |
This file contains hidden or 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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using Topshelf; | |
using NLog; | |
namespace ListenerService |
This file contains hidden or 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
package main | |
import ( | |
"context" | |
"flag" | |
"fmt" | |
"io" | |
"log" | |
"net/http" | |
"os" |
This file contains hidden or 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
using System; | |
using System.Collections.Generic; | |
using System.Threading.Channels; | |
using System.Threading.Tasks; | |
using System.Diagnostics; | |
using Microsoft.Extensions.DependencyInjection; | |
using Microsoft.Extensions.Hosting; | |
using Microsoft.Extensions.Logging; | |
namespace channels |
This file contains hidden or 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
package main | |
import ( | |
"context" | |
"database/sql" | |
"fmt" | |
"strings" | |
"time" | |
godror "github.com/godror/godror" |
This file contains hidden or 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
# Install Virtualbox (from here)[https://www.virtualbox.org/wiki/Downloads] | |
# Install Kubectl, refer (here)[https://kubernetes.io/docs/tasks/tools/install-minikube/#install-kubectl] | |
# Install Minikube, refere (here)[https://kubernetes.io/docs/tasks/tools/install-minikube/#install-minikube) | |
# Install Helm by following instructions at (Helm)[https://github.com/helm/helm/blob/master/docs/install.md] | |
# Install faas-cli, refer (here)[https://docs.openfaas.com/cli/install/] | |
# Start Windows Powershell using Run as Administrator | |
# Update Path variable by adding paths to above utilities using `$env:Path += "c:\path_to_kubectl"` | |
# Run `minikube start` - This will download VM image and set it up in Virtualbox and kick off K8s Cluster. | |
# Run `& minikube docker-env | Invoke-Expression` - This means that any Docker images built will be built in your minikube, so they are readily available. | |
# clond faas-netes repository using `git clone https://github.com/openfaas/faas-netes.git`. |
NewerOlder