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); }
public TinyUrlOperations(IUrlContext urlContext, IUrlExpiredEventHandler urlExpiredEventHandler, ILogger <TinyUrlOperations> logger) { _urlContext = urlContext; _urlExpiredEventHandler = urlExpiredEventHandler; _logger = logger; }
public UrlModel(IUrlContext urlContext) { _context = urlContext; }
public UrlController(IUrlContext context) { this.context = context; }
public SyndicationService(IRepository respository, IUrlContext urlContext) { _respository = respository; _urlContext = urlContext; }