Table of Contents

Class ProxyDemo.RemoteDataService

Namespace
PatternKit.Examples.ProxyDemo
Assembly
PatternKit.Examples.dll

Simulates a remote data service with network latency.

public sealed class ProxyDemo.RemoteDataService
Inheritance
ProxyDemo.RemoteDataService
Inherited Members
Extension Methods

Remarks

In real applications, this would represent a web service, REST API, or remote database. The proxy can add caching, retry logic, and circuit breakers to improve resilience.

Methods

FetchData(int)

Fetches data from a remote server (simulated).

public string FetchData(int id)

Parameters

id int

The ID of the data to fetch.

Returns

string

The fetched data as a string.