Skip to content

Commit db7216c

Browse files
committed
Update Zetian example imports for accuracy
Revised the import statements in all example code snippets to use the correct Zetian namespaces and classes. This ensures the examples reflect the current Zetian API structure and improve clarity for users referencing these code samples.
1 parent 153a518 commit db7216c

1 file changed

Lines changed: 12 additions & 10 deletions

File tree

.pages/app/examples/page.tsx

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const examples = [
2121
icon: Zap,
2222
color: 'from-blue-500 to-indigo-600',
2323
difficulty: 'Beginner',
24-
code: `using Zetian;
24+
code: `using Zetian.Server;
2525
2626
// Basic SMTP server - accepts all messages
2727
using var server = new SmtpServerBuilder()
@@ -49,8 +49,8 @@ Console.WriteLine("SMTP Server is running on port 25");`
4949
icon: Shield,
5050
color: 'from-green-500 to-emerald-600',
5151
difficulty: 'Intermediate',
52-
code: `using Zetian;
53-
using Zetian.Authentication;
52+
code: `using Zetian.Models;
53+
using Zetian.Server;
5454
5555
// Authenticated SMTP server
5656
using var server = new SmtpServerBuilder()
@@ -93,8 +93,7 @@ Console.WriteLine("SMTP Server with authentication on port 587");`
9393
icon: Lock,
9494
color: 'from-purple-500 to-pink-600',
9595
difficulty: 'Intermediate',
96-
code: `using Zetian;
97-
using Zetian.Authentication;
96+
code: `using Zetian.Server;
9897
9998
// Secure SMTP server with TLS/SSL support
10099
using var server = new SmtpServerBuilder()
@@ -127,8 +126,9 @@ Console.WriteLine("Secure SMTP Server running with STARTTLS support on port 587"
127126
icon: Gauge,
128127
color: 'from-yellow-500 to-orange-600',
129128
difficulty: 'Intermediate',
130-
code: `using Zetian.Extensions;
131-
using Zetian.Extensions.RateLimiting;
129+
code: `using Zetian.Models;
130+
using Zetian.Server;
131+
using Zetian.Extensions;
132132
133133
// SMTP server protected with rate limiting
134134
using var server = new SmtpServerBuilder()
@@ -165,7 +165,8 @@ Console.WriteLine("Rate-limited server on port 25");`
165165
icon: Filter,
166166
color: 'from-red-500 to-rose-600',
167167
difficulty: 'Advanced',
168-
code: `using Zetian;
168+
code: `using Zetian.Server;
169+
using Zetian.Protocol;
169170
170171
// Protocol-level filtering
171172
using var server = new SmtpServerBuilder()
@@ -211,9 +212,10 @@ await server.StartAsync();`
211212
icon: Database,
212213
color: 'from-teal-500 to-cyan-600',
213214
difficulty: 'Advanced',
214-
code: `using Zetian;
215-
using Zetian.Storage;
215+
code: `using System.Net;
216+
using Zetian.Server;
216217
using System.Text.Json;
218+
using Zetian.Abstractions;
217219
218220
// SMTP server with built-in file storage
219221
using var server = new SmtpServerBuilder()

0 commit comments

Comments
 (0)