105
|
1 using System;
|
|
2
|
|
3 namespace Agendas.Blog.Impl
|
|
4 {
|
|
5 public class BlogPublicadorConfig
|
|
6 {
|
|
7 public BlogPublicadorConfig(string postWriterServiceUrl, string blogName, string blogWriterMasterKey)
|
|
8 {
|
|
9 if (string.IsNullOrEmpty(postWriterServiceUrl)) throw new ArgumentNullException("postWriterServiceUrl");
|
|
10 if (string.IsNullOrEmpty(blogName)) throw new ArgumentNullException("blogName");
|
|
11 if (string.IsNullOrEmpty(blogWriterMasterKey)) throw new ArgumentNullException("blogWriterMasterKey");
|
|
12
|
|
13 _postWriterServiceUrl = postWriterServiceUrl;
|
|
14 _blogName = blogName;
|
|
15 _blogWriterMasterKey = blogWriterMasterKey;
|
|
16 }
|
|
17
|
|
18 private readonly string _postWriterServiceUrl;
|
|
19 private readonly string _blogName;
|
|
20 private readonly string _blogWriterMasterKey;
|
|
21
|
|
22 public string BlogWriterMasterKey
|
|
23 {
|
|
24 get { return _blogWriterMasterKey; }
|
|
25 }
|
|
26
|
|
27 public string BlogName
|
|
28 {
|
|
29 get { return _blogName; }
|
|
30 }
|
|
31
|
|
32 public string PostWriterServiceUrl
|
|
33 {
|
|
34 get { return _postWriterServiceUrl; }
|
|
35 }
|
|
36 }
|
|
37 }
|