1515
1616namespace DevBaseLive ;
1717
18- /// <summary>
19- /// Represents a person record.
20- /// </summary>
21- /// <param name="name">The name of the person.</param>
22- /// <param name="age">The age of the person.</param>
23- record Person ( string name , int age ) ;
24-
2518/// <summary>
2619/// Entry point class for the DevBaseLive application.
2720/// </summary>
@@ -34,41 +27,38 @@ class Program
3427 /// <param name="args">Command line arguments.</param>
3528 public static async Task Main ( string [ ] args )
3629 {
37- Person p = new Person ( "alex" , 1 ) ;
38-
3930 var l = new LoggerConfiguration ( )
4031 . WriteTo . Console ( )
4132 . MinimumLevel . Information ( )
4233 . CreateLogger ( ) ;
4334
44- for ( int i = 0 ; i < 20 ; i ++ )
45- {
46- Request request = new Request ( )
47- . AsGet ( )
48- . WithHostCheck ( new HostCheckConfig ( ) )
49- . UseBasicAuthentication ( "joe" , "mama" )
50- . WithRetryPolicy ( new RetryPolicy ( )
51- {
52- MaxRetries = 2
53- } )
54- . WithLogging ( new LoggingConfig ( )
55- {
56- Logger = l
57- } )
58- . WithMultipleFiles (
59- ( "file1" , AFile . ReadFileToObject ( "C:\\ Users\\ alex\\ Desktop\\ zoom1.txt" ) ) ,
60- ( "file2" , AFile . ReadFileToObject ( "C:\\ Users\\ alex\\ Desktop\\ zoom2.txt" ) )
61- )
35+
36+
37+ Request request = new Request ( )
38+ . AsGet ( )
39+ . WithHostCheck ( new HostCheckConfig ( ) )
40+ . UseBasicAuthentication ( "joe" , "mama" )
41+ . WithRetryPolicy ( new RetryPolicy ( )
42+ {
43+ MaxRetries = 2
44+ } )
45+ . WithLogging ( new LoggingConfig ( )
46+ {
47+ Logger = l
48+ } )
49+ . WithMultipleFiles (
50+ ( "file1" , AFile . ReadFileToObject ( "C:\\ Users\\ alex\\ Desktop\\ zoom1.txt" ) ) ,
51+ ( "file2" , AFile . ReadFileToObject ( "C:\\ Users\\ alex\\ Desktop\\ zoom2.txt" ) )
52+ )
6253
63- . WithScrapingBypass ( new ScrapingBypassConfig ( )
64- {
65- BrowserProfile = EnumBrowserProfile . Firefox
66- } ) . WithHeader ( "sec-fetch-mode" , "yoemamam" )
67- . WithUrl ( "https://webhook.site/bd100268-d633-43f5-b298-28ee17c97ccf" ) ;
68- Response response = await request . SendAsync ( ) ;
54+ . WithScrapingBypass ( new ScrapingBypassConfig ( )
55+ {
56+ BrowserProfile = EnumBrowserProfile . Firefox
57+ } ) . WithHeader ( "sec-fetch-mode" , "yoemamam" )
58+ . WithUrl ( "https://webhook.site/bd100268-d633-43f5-b298-28ee17c97ccf" ) ;
59+ Response response = await request . SendAsync ( ) ;
6960
70- string data = await response . GetStringAsync ( ) ;
71- data . DumpConsole ( ) ;
72- }
61+ string data = await response . GetStringAsync ( ) ;
62+ data . DumpConsole ( ) ;
7363 }
7464}
0 commit comments