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
| Resources: | |
| MyS3Bucket: | |
| Type: AWS::S3::Bucket | |
| Outputs: | |
| BucketName: | |
| Value: | |
| Ref: MyS3Bucket |
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
| { | |
| "AWSTemplateFormatVersion" : "version date", | |
| "Description" : "Description", | |
| "Resources" : { }, | |
| "Parameters" : { }, | |
| "Mappings" : { }, | |
| "Conditions" : { }, | |
| "Metadata" : { }, | |
| "Outputs" : { } | |
| } |
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
| { | |
| "apiVersion": "v1", | |
| "kind": "Pod", | |
| "metadata": { | |
| "creationTimestamp": "2019-01-12T18:19:02Z", | |
| "generateName": "docone-deployment3-6594cdc4d-", | |
| "labels": { | |
| "pod-template-hash": "6594cdc4d", | |
| "run": "docone-deployment3" | |
| }, |
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
| [ | |
| { | |
| "topic": "string", | |
| "subject": "string", | |
| "id": "string", | |
| "eventType": "string", | |
| "eventTime": "string", | |
| "data": { "object-unique-to-each-publisher" }, | |
| "dataVersion": "string", | |
| "metadataVersion": "string" |
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
| public async Task<IActionResult> Post([FromBody]object request) | |
| { | |
| try | |
| { | |
| var eventGridEvent = JsonConvert.DeserializeObject<EventGridEvent[]>(request.ToString()); | |
| foreach (var item in eventGridEvent) | |
| { | |
| if (string.Equals(item.EventType, "Microsoft.EventGrid.SubscriptionValidationEvent", StringComparison.OrdinalIgnoreCase)) |
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
| public class CandidateEvents : ICandidateEvents | |
| { | |
| string topicEndpoint; | |
| string topicKey ; | |
| string topicHostname ; | |
| TopicCredentials topicCredentials ; | |
| EventGridClient client; | |
| public CandidateEvents() | |
| { |
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
| public interface ICandidateEvents | |
| { | |
| Task CandidateCreatedEvent(Candidate candidate); | |
| Task CandidateUpdatedEvent(Candidate candidate); | |
| } |
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
| FROM microsoft/dotnet:2.1-runtime AS base | |
| WORKDIR /app | |
| FROM microsoft/dotnet:2.1-sdk AS build | |
| WORKDIR /src | |
| COPY thetime/thetime.csproj thetime/ | |
| RUN dotnet restore thetime/thetime.csproj | |
| COPY . . | |
| WORKDIR /src/thetime | |
| RUN dotnet build thetime.csproj -c Release -o /app |
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.Timers; | |
| namespace thetime | |
| { | |
| class Program | |
| { | |
| static void Main(string[] args) | |
| { | |
| var timer = new Timer(2000); |
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
| this.tokenizerService.getToken().subscribe( | |
| (data) => { | |
| console.log(`token is ${data}`); | |
| localStorage.setItem("token", data.token) | |
| localStorage.setItem("tokenexpiration", data.expiration) | |
| }, | |
| error => { | |
| console.log(`Error in obtaining token ${error}`); | |
| } |