· 7 years ago · Jul 11, 2018, 01:04 PM
1public class LiveClient
2 {
3 private HttpClient httpClient;
4
5 private readonly string publicKey;
6 private readonly string secretKey;
7
8 private const string baseAddress = "https://my.domain";
9
10 public LiveClient()
11 {
12 httpClient = new HttpClient { BaseAddress = new Uri(baseAddress) };
13 }
14
15 public LiveClient(string publicKey, string secretKey)
16 {
17 this.publicKey = publicKey;
18 this.secretKey = secretKey;
19
20 httpClient = new HttpClient { BaseAddress = new Uri(baseAddress) };
21 }
22
23public void MyWithOutParamConstructorMethod()
24{
25 //работает Ñ ÐºÐ¾Ð½Ñруктором без параметров
26}
27
28public void MyParamconstructorMethod()
29{
30 //работает Ñ Ð¿Ð°Ñ€Ð°Ð¼ÐµÑ‚Ñ€Ð¸Ð·Ð¸Ñ€Ð¾Ð²Ð°Ð½Ð½Ñ‹Ð¼ конÑруктором
31}
32
33 }