Skip to content

Instantly share code, notes, and snippets.

View ManojLingala's full-sized avatar
🏠
Working from home

manojlingala ManojLingala

🏠
Working from home
View GitHub Profile
@ManojLingala
ManojLingala / 'A'DotnetDevonMac.md
Last active June 17, 2018 20:33
FullStackDotnetDevonMac

Microsoft Developer's who loves to code on Macbook will always dreamt of FullStack .NET development on Mac. Finally , {DotNET, ASP.NET} Core were officially released and SQL Server recently got support for Linux and Microsoft has now published a Docker image for SQL Server for Linux, you can now run SQL Server on Mac via Docker!

First of all, even with all these in place due to the lack of the quality tools which slow down the development phase. So, I'm writing this to provide a step by step process of setting up Development env on Macbook with proper tools which increases the productivity and efficiecy .

  1. Install Visual Studio Community Edition for Mac https://www.visualstudio.com/vs/mac/
@ManojLingala
ManojLingala / ChargingEngineService.cs
Last active July 13, 2023 10:41
CloudCharging -<<redis-stack-charge_request_redis-lambda-fn >>
using StackExchange.Redis;
using System;
using System.Threading.Tasks;
public class ChargingEngineService
{
private static readonly string Key = "account1/balance";
private static readonly int DefaultBalance = 100;
private static ConnectionMultiplexer redis;
@ManojLingala
ManojLingala / MemcachedChargingService.cs
Created July 13, 2023 10:57
Cloud Charging - MemCache <<memcached-stack-charge_request_memcached-lambda-fn>>
using System;
using System.Threading.Tasks;
using Enyim.Caching;
using Enyim.Caching.Configuration;
using Enyim.Caching.Memcached;
public class MemcachedChargingService
{
private readonly IMemcachedClient _client;
private const string Key = "account1/balance";
Create a New .NET 6.0 Console Application
```dotnet new console -n PalindromeCheckerApp```
Change directory to the newly created project
```cd PalindromeCheckerApp ```
Copy this program.cs
1. public record Person(string FirstName, string LastName);
2.var person1 = new Person("Manoj", "L");
var person2 = person1 with { LastName = "Lingala" };
// Prints: Person { FirstName = Manoj, LastName = Lingala }
Console.WriteLine(person2);
3.public class Car