view Agendas/trunk/src/Agendas.Blog/Impl/BlogPublicadorConfig.cs @ 247:92c912b46307

Ticket #183: que la url del subpanel funcione en el directorio virtual
author nelopauselli
date Fri, 07 Oct 2011 12:54:56 -0300
parents 1d820f17fc75
children
line wrap: on
line source

using System;

namespace Agendas.Blog.Impl
{
  public class BlogPublicadorConfig
  {
    public BlogPublicadorConfig(string postWriterServiceUrl, string blogName, string blogWriterMasterKey)
    {
      if (string.IsNullOrEmpty(postWriterServiceUrl)) throw new ArgumentNullException("postWriterServiceUrl");
      if (string.IsNullOrEmpty(blogName)) throw new ArgumentNullException("blogName");
      if (string.IsNullOrEmpty(blogWriterMasterKey)) throw new ArgumentNullException("blogWriterMasterKey");

      _postWriterServiceUrl = postWriterServiceUrl;
      _blogName = blogName;
      _blogWriterMasterKey = blogWriterMasterKey;
    }

    private readonly string _postWriterServiceUrl;
    private readonly string _blogName;
    private readonly string _blogWriterMasterKey;

    public string BlogWriterMasterKey
    {
      get { return _blogWriterMasterKey; }
    }

    public string BlogName
    {
      get { return _blogName; }
    }

    public string PostWriterServiceUrl
    {
      get { return _postWriterServiceUrl; }
    }
  }
}