Skip to content

Instantly share code, notes, and snippets.

{
"id": "9e22c803-3755-43b6-9f28-ca76fcfcc783",
"LastPurchases": [
{
"FictionalArticleNumber": "58de36c2-3971-3659-7d3c-592d5240b040",
"ArticleName": "Ridges",
"CustomerId": "9e22c803-3755-43b6-9f28-ca76fcfcc783",
"TransactionDate": "2020-12-10T21:06:13.4147689+01:00",
"id": "0f7b22d1-f3b9-8402-15bf-4fcc2e101a96"
},
[FunctionName("PurchasesTrigger")]
public async Task RunAsync(
[CosmosDBTrigger(databaseName: Repository.DatabaseName,
collectionName: Repository.PurchasesContainerName,
ConnectionStringSetting = "CosmosDBConnection",
CreateLeaseCollectionIfNotExists = true)] IReadOnlyList<Document> input)
{
if (input != null && input.Count > 0)
{
foreach (var purchaseDocument in input)
@eOkadas
eOkadas / purchase.cs
Created October 2, 2020 15:14
Mediuam. Try out the Cosmos Db change feed
public class Purchase
{
public Guid FictionalArticleNumber { get; set; }
public string ArticleName { get; set; }
public Guid CustomerId { get; set; }
public DateTimeOffset TransactionDate { get; set; }
[JsonProperty("id")]
public Guid PurchaseId { get; set; }
}
@eOkadas
eOkadas / Rider Features That I love.md
Last active October 31, 2018 14:31
Rider Features That I love

tldr: Do you spend most of your time using Visual Studio's built in refactoring features, or resharper ? Well why use Visual Studio at all ? Just cut off the middle man.

Debugging third party Code without Symbol servers / Pdb files

https://blog.jetbrains.com/dotnet/2017/12/20/debugging-third-party-code-rider/

Version Control

git

The Team tab in VS feels like it was built as an afterthought.

<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
<s:Boolean x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=FA1619322D635441B1EAEABE3470DEA8/@KeyIndexDefined">True</s:Boolean>
<s:String x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=FA1619322D635441B1EAEABE3470DEA8/Shortcut/@EntryValue">tusw</s:String>
<s:String x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=FA1619322D635441B1EAEABE3470DEA8/Description/@EntryValue">test Should When</s:String>
<s:String x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=FA1619322D635441B1EAEABE3470DEA8/Text/@EntryValue">[Test]&#xD;
public void Should_$Should$_When_$When$()&#xD;
{&#xD;
$END$&#xD;
}</s:String>
<s:Boolean x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=FA1619322D635441B