Class ProxyDemo.DocumentService
- Namespace
- PatternKit.Examples.ProxyDemo
- Assembly
- PatternKit.Examples.dll
Service for performing operations on documents.
public sealed class ProxyDemo.DocumentService
- Inheritance
-
ProxyDemo.DocumentService
- Inherited Members
- Extension Methods
Remarks
This service contains the actual business logic for document operations. In production, it would be protected by a proxy that enforces access control.
Methods
Delete(Document)
Deletes a document from the system.
public bool Delete(ProxyDemo.Document doc)
Parameters
Returns
Read(Document)
Reads a document's content.
public string Read(ProxyDemo.Document doc)
Parameters
Returns
- string
A formatted string containing the document content.