Microsoft Developer Network

Network API Samples & Documentation

Explore Network Samples

Basic HTTP Client

A simple example demonstrating how to make GET and POST requests using HttpClient.

C# HttpClient REST

Socket Programming

Learn fundamental socket communication for TCP and UDP protocols.

C# Sockets TCP UDP

WebSockets API

Implement real-time, bi-directional communication with WebSockets.

C# WebSockets Real-time

gRPC Services

Build high-performance, cross-platform RPC services with gRPC.

C# gRPC RPC Performance

Network Security

Examples of secure network communication using TLS/SSL.

C# Security TLS SSL

API Gateway Patterns

Explore common patterns for building robust API gateways.

C# API Gateway Microservices