Skip to content

Instantly share code, notes, and snippets.

View ercanerdogan's full-sized avatar
🎯
Always improving

Ercan Erdoğan ercanerdogan

🎯
Always improving
View GitHub Profile
@ercanerdogan
ercanerdogan / LoadData.cs
Created February 11, 2024 23:48
The difference between IEnumerable and IQueryable:
using System;
using System.Collections.Generic;
using System.Linq;
namespace LINQDemo
{
class Program
{
static void Main(string[] args)
{
static void Main(string[] args)
{
var factory = new ConnectionFactory() { HostName = "localhost" };
using (var connection = factory.CreateConnection())
using (var channel = connection.CreateModel())
{
channel.QueueDeclare(
queue: "sample",
@ercanerdogan
ercanerdogan / Producer.cs
Created September 8, 2021 00:24
This is message Producer service.
static void Main(string[] args)
{
var factory = new ConnectionFactory() { HostName = "localhost" };
using (var connection = factory.CreateConnection())
using (var channel = connection.CreateModel())
{
channel.QueueDeclare(
queue: "sample",
durable: false,