Exemplo n.º 1
0
 public MetaWeblog(IRepository repository, IUrlContext urlContext, IAuthenticationService authenticationService)
 {
     _repository = repository;
     _urlContext = urlContext;
     _authenticationService = authenticationService;
     _settings = BlogSettings.Get(_repository);
 }
        /// <include file='doc\StyleBuilderPage.uex' path='docs/doc[@for="StyleBuilderPage.GetBaseUrl"]/*' />
        /// <devdoc>
        ///    <para>[To be supplied.]</para>
        /// </devdoc>
        protected string GetBaseUrl()
        {
            string baseUrl = "";
            ISite  site    = Site;

            if (site != null)
            {
                IUrlContext context = (IUrlContext)site.GetService(typeof(IUrlContext));

                if (context != null)
                {
                    baseUrl = context.GetUrl();
                }
            }

            return(baseUrl);
        }
Exemplo n.º 3
0
 public TinyUrlOperations(IUrlContext urlContext, IUrlExpiredEventHandler urlExpiredEventHandler, ILogger <TinyUrlOperations> logger)
 {
     _urlContext             = urlContext;
     _urlExpiredEventHandler = urlExpiredEventHandler;
     _logger = logger;
 }
Exemplo n.º 4
0
 public UrlModel(IUrlContext urlContext)
 {
     _context = urlContext;
 }
Exemplo n.º 5
0
 public UrlController(IUrlContext context)
 {
     this.context = context;
 }
Exemplo n.º 6
0
 public SyndicationService(IRepository respository, IUrlContext urlContext)
 {
     _respository = respository;
     _urlContext = urlContext;
 }