---
title: "Ashok Tandan (@ashok_tandan) | Hashnode"
description: "software developer. Read the latest articles by Ashok Tandan on Hashnode."
url: "https://hashnode.com/@ashok_tandan"
---

@ashok\_tandan

# Ashok Tandan

@ashok\_tandan · Gurgaon · Joined March 2020

software developer

### [transient, scoped, and singleton](https://tandan.hashnode.dev/transient-scoped-and-singleton?utm_source=hashnode&utm_medium=feed)

// IProductCatalogService.cs public interface IProductCatalogService { List GetProducts(); } // IShoppingCartService.cs public interface IShoppingCartService { void AddToCart(Product product); List GetCartItems(); } // IOrderProcessingService.cs publ...

1 min read · [tandan.hashnode.dev](https://tandan.hashnode.dev/transient-scoped-and-singleton?utm_source=hashnode&utm_medium=feed)

[Aug 4, 2023](https://hashnode.com/posts/transient-scoped-and-singleton/64cccdb525f6a9a8927a5e48)

### [virtual and override keywords in C#](https://tandan.hashnode.dev/virtual-and-override-keywords-in-c?utm_source=hashnode&utm_medium=feed)

If there were no virtual and override keywords in C#, the methods would not be explicitly marked for virtual or overridden behavior, and the default method resolution would be based on the type of the variable at compile-time. In such a scenario, whe...

2 min read · [tandan.hashnode.dev](https://tandan.hashnode.dev/virtual-and-override-keywords-in-c?utm_source=hashnode&utm_medium=feed)

[Jul 10, 2023](https://hashnode.com/posts/virtual-and-override-keywords-in-c/64abf8b3120a3d2ff0b929d6)

### [Asp Core custom session](https://tandan.hashnode.dev/asp-core-custom-session?utm_source=hashnode&utm_medium=feed)

public class CustomSession : ISession { private readonly IDistributedCache cache; private readonly string sessionKey; private readonly string sessionId; private Dictionary<string, byte\[\]> data; public bool IsAvailable { get; set; } public string Id =...

2 min read · [tandan.hashnode.dev](https://tandan.hashnode.dev/asp-core-custom-session?utm_source=hashnode&utm_medium=feed)

[Apr 26, 2023](https://hashnode.com/posts/asp-core-custom-session/64496985d3bb0a6294b1633c)

### [elastic kibana update query](https://tandan.hashnode.dev/elastic-kibana-update-query?utm_source=hashnode&utm_medium=feed)

POST products\_dev/\_update\_by\_query { "script" : { "source": "ctx.\_source.ranking=9999;" }, "query": { "term" : { "ranking": 0 } } } Duplicate find by grouping: GET /operators\_circles/\_search { "size": 0, "aggs": { "duplicate\_documents": { "terms": { ...

1 min read · [tandan.hashnode.dev](https://tandan.hashnode.dev/elastic-kibana-update-query?utm_source=hashnode&utm_medium=feed)

[Apr 18, 2023](https://hashnode.com/posts/elastic-kibana-update-query/643ed3abaf6291061acd4124)

### [Pass by value vs reference](https://tandan.hashnode.dev/pass-by-value-vs-reference?utm_source=hashnode&utm_medium=feed)

C#

1 min read · [tandan.hashnode.dev](https://tandan.hashnode.dev/pass-by-value-vs-reference?utm_source=hashnode&utm_medium=feed)

[Apr 18, 2023](https://hashnode.com/posts/pass-by-value-vs-reference/643ed2e7af6291061acd411c)
