Ejemplo n.º 1
0
 public UserController(IMemberService memberService, IAuthenticationService authenticationService,
                       IUmbracoWrapper umbracoWrapper)
 {
     _memberService         = memberService;
     _authenticationService = authenticationService;
     _umbracoWrapper        = umbracoWrapper;
 }
 public ImportFacebookVenueEventsController(IFacebookEventsService facebookEventsService,
                                            IEventImportService eventImportService, IUmbracoWrapper umbracoWrapper)
 {
     _facebookEventsService = facebookEventsService;
     _eventImportService    = eventImportService;
     _umbracoWrapper        = umbracoWrapper;
 }
Ejemplo n.º 3
0
 public Sierra(IUmbracoWrapper umbraco, ITemplateService templateService, string connectionString)
 {
     _umbraco         = umbraco;
     _templateService = templateService;
     _connection      = new NpgsqlConnection(connectionString);
     Connect();
 }
Ejemplo n.º 4
0
 public ContentSearchService(IUmbracoWrapper umbracoWrapper,
                             IExamineSearchProviderWrapper examineSearchProviderWrapper,
                             IModelConverter modelConverter)
 {
     _umbracoWrapper = umbracoWrapper;
     _examineSearchProviderWrapper = examineSearchProviderWrapper;
     _modelConverter = modelConverter;
 }
Ejemplo n.º 5
0
 public OrderItemPatronDataSurfaceController(IOrderItemManager orderItemManager, IPatronDataProvider patronDataProviderSierraCache,
                                             IPatronDataProvider patronDataProviderSierra, IUmbracoWrapper umbraco)
 {
     _orderItemManager = orderItemManager;
     _patronDataProviderSierraCache = patronDataProviderSierraCache;
     _patronDataProviderSierra      = patronDataProviderSierra;
     _umbraco = umbraco;
 }
 public OrderItemDeliverySurfaceController(IOrderItemManager orderItemManager, IUmbracoWrapper umbraco,
                                           ITemplateService templateService, IMailService mailService)
 {
     _orderItemManager = orderItemManager;
     _umbraco          = umbraco;
     _templateService  = templateService;
     _mailService      = mailService;
 }
Ejemplo n.º 7
0
 public OrderItemSurfaceController(IMemberInfoManager memberInfoManager, IOrderItemManager orderItemManager,
                                   INotifier notifier, IUmbracoWrapper umbraco)
 {
     _memberInfoManager = memberInfoManager;
     _orderItemManager  = orderItemManager;
     _notifier          = notifier;
     _umbraco           = umbraco;
 }
Ejemplo n.º 8
0
 public FeedController(IModelConverter modelConverter,
                       IUmbracoWrapper umbracoWrapper,
                       IEventSearchService eventSearchService)
 {
     _modelConverter     = modelConverter;
     _umbracoWrapper     = umbracoWrapper;
     _eventSearchService = eventSearchService;
 }
Ejemplo n.º 9
0
 public UmbracoNavigationProvider(
     IModelConverter modelConverter, IUmbracoNodeService umbracoNodeService,
     IUmbracoWrapper umbracoWrapper, INodeTypeFactory nodeTypeFactory,
     int priority)
     : this(modelConverter, umbracoNodeService, umbracoWrapper,
            nodeTypeFactory, priority, typeof(SettingsNodeType))
 {
 }
Ejemplo n.º 10
0
 public LibrisOrderItemsSource(IUmbracoWrapper umbraco, IOrderItemManager orderItemManager, IPatronDataProvider patronDataProvider,
                               IOrderItemSearcher orderItemSearcher)
 {
     _umbraco            = umbraco;
     _orderItemManager   = orderItemManager;
     _patronDataProvider = patronDataProvider;
     _orderItemSearcher  = orderItemSearcher;
 }
Ejemplo n.º 11
0
 public EventImportService(IUmbracoWrapper umbracoWrapper,
                           ISmartTagService smartTagService,
                           IDateTimeProvider dateTimeProvider)
 {
     _umbracoWrapper   = umbracoWrapper;
     _smartTagService  = smartTagService;
     _dateTimeProvider = dateTimeProvider;
 }
 /// <summary>
 /// converts the passed umbraco content into a site media image
 /// </summary>
 private static MediaImageModel ConvertImage(IUmbracoWrapper umbracoWrapper, IPublishedContent image)
 {
     return(new MediaImageModel
     {
         Url = image.Url,
         Width = umbracoWrapper.GetPropertyValue <int>(image, "umbracoWidth"),
         Height = umbracoWrapper.GetPropertyValue <int>(image, "umbracoHeight")
     });
 }
 public OrderItemMailSurfaceController(IOrderItemManager orderItemManager, IExchangeMailWebApi exchangeMailWebApi,
                                       IUmbracoWrapper dataTypes, IMailService mailService, ITemplateService templateService)
 {
     _orderItemManager   = orderItemManager;
     _exchangeMailWebApi = exchangeMailWebApi;
     _dataTypes          = dataTypes;
     _mailService        = mailService;
     _templateService    = templateService;
 }
Ejemplo n.º 14
0
 public FacebookEventsService(IFacebookApiCall <GetEventsConfiguration, GetEventsResponse> getEventsCall,
                              IUmbracoWrapper umbracoWrapper,
                              ILog log,
                              IUmbracoImageRetriever umbracoImageRetriever)
 {
     _getEventsCall         = getEventsCall;
     _umbracoWrapper        = umbracoWrapper;
     _log                   = log;
     _umbracoImageRetriever = umbracoImageRetriever;
 }
 public ChalmersSourceFactory(IExchangeMailWebApi exchangeMailWebApi, IOrderItemManager orderItemManager, INotifier notifier,
                              IMediaItemManager mediaItemManager, IUmbracoWrapper umbraco, IPatronDataProvider patronDataProvider, IOrderItemSearcher orderItemSearcher)
 {
     _exchangeMailWebApi = exchangeMailWebApi;
     _orderItemManager   = orderItemManager;
     _notifier           = notifier;
     _mediaItemManager   = mediaItemManager;
     _umbraco            = umbraco;
     _patronDataProvider = patronDataProvider;
     _orderItemSearcher  = orderItemSearcher;
 }
Ejemplo n.º 16
0
 public UmbracoNavigationProvider(
     IModelConverter modelConverter, IUmbracoNodeService umbracoNodeService,
     IUmbracoWrapper umbracoWrapper, INodeTypeFactory nodeTypeFactory,
     int priority, Type rootNodeType)
 {
     _modelConverter     = modelConverter;
     _umbracoNodeService = umbracoNodeService;
     _umbracoWrapper     = umbracoWrapper;
     _nodeTypeFactory    = nodeTypeFactory;
     Priority            = priority;
     _rootNodeType       = rootNodeType;
 }
 public SystemSurfaceController(IOrderItemManager orderItemManager, INotifier notifier, IExchangeMailWebApi exchangeMailWebApi,
                                IUmbracoWrapper dataTypes, ISourceFactory sourceFactory, IOrderItemSearcher orderItemsSearcher,
                                IAutomaticMailSendingEngine automaticMailSendingEngine, IUmbracoWrapper umbraco)
 {
     _orderItemManager           = orderItemManager;
     _notifier                   = notifier;
     _exchangeMailWebApi         = exchangeMailWebApi;
     _dataTypes                  = dataTypes;
     _sourceFactory              = sourceFactory;
     _orderItemsSearcher         = orderItemsSearcher;
     _automaticMailSendingEngine = automaticMailSendingEngine;
     _umbraco = umbraco;
 }
 public OrderItemReceiveBookSurfaceController(
     IUmbracoWrapper umbraco,
     IOrderItemManager orderItemManager,
     ITemplateService templateService,
     IMailService mailService,
     IFolioService folioService,
     IChillinTextRepository chillinTextRepository)
 {
     _orderItemManager      = orderItemManager;
     _templateService       = templateService;
     _mailService           = mailService;
     _umbraco               = umbraco;
     _folioService          = folioService;
     _chillinTextRepository = chillinTextRepository;
 }
Ejemplo n.º 19
0
 public CleanupEventsController(IEventSearchService eventSearchService,
                                IContentService contentService,
                                IMediaService mediaService,
                                IDuplicatesService duplicatesService,
                                ILog log,
                                IUmbracoWrapper umbracoWrapper,
                                IDateTimeProvider dateTimeProvider)
 {
     _eventSearchService = eventSearchService;
     _contentService     = contentService;
     _mediaService       = mediaService;
     _duplicatesService  = duplicatesService;
     _log              = log;
     _umbracoWrapper   = umbracoWrapper;
     _dateTimeProvider = dateTimeProvider;
 }
        /// <summary>
        /// converts the passed umbraco content into a site media file
        /// </summary>
        private static MediaFileModel ConvertFile(IUmbracoWrapper umbracoWrapper, IPublishedContent file)
        {
            var extension    = umbracoWrapper.GetPropertyValue <string>(file, "umbracoExtension");
            var umbracoBytes = umbracoWrapper.GetPropertyValue <double>(file, "umbracoBytes");

            var size = Math.Round(umbracoBytes / 1000, 1);
            var unit = "KB";
            var type = extension.ToUpper();

            if (size > 1000)
            {
                size = Math.Round(size / 1000, 1);

                unit = "MB";
            }

            return(new MediaFileModel
            {
                Url = file.Url,
                Extension = extension,
                Size = $"{size}&nbsp;{unit}"
            });
        }
 public LinkPickerAttribute()
 {
     _umbracoWrapper = DependencyResolver.Current.GetService <IUmbracoWrapper>();
 }
 public ContentPickerToUrlAttribute(IUmbracoWrapper umbracoWrapper)
 {
     _umbracoWrapper = umbracoWrapper;
 }
 public ContentPickerToUrlAttribute()
 {
     _umbracoWrapper = DependencyResolver.Current.GetService <IUmbracoWrapper>();
 }
Ejemplo n.º 24
0
 public UmbracoNodeService(IUmbracoWrapper umbracoWrapper)
 {
     _umbracoWrapper = umbracoWrapper;
 }
 public BaseService(IUmbracoWrapper umbracoWrapper)
 {
     UmbracoWrapper = umbracoWrapper;
 }
Ejemplo n.º 26
0
 public OrderItemManager(IUmbracoWrapper umbraco)
 {
     _umbraco = umbraco;
     _rand    = new Random();
 }
 public LinkPickerAttribute(IUmbracoWrapper umbracoWrapper)
 {
     _umbracoWrapper = umbracoWrapper;
 }
 public MediaService(
     IUmbracoWrapper umbracoWrapper)
 {
     _umbracoWrapper = umbracoWrapper;
 }
Ejemplo n.º 29
0
 public HomeNodeType(IUmbracoWrapper umbracoWrapper)
 {
     _umbracoWrapper = umbracoWrapper;
 }
 public BaseRenderMvcController(IUmbracoWrapper umbracoHelper)
     : base(umbracoHelper.CurrentUmbracoContext())
 {
     UmbracoWrapper = umbracoHelper;
 }
Ejemplo n.º 31
0
 public CountriesAttribute(IUmbracoWrapper umbracoWrapper, IModelConverter modelConverter)
 {
     _umbracoWrapper = umbracoWrapper;
     _modelConverter = modelConverter;
 }
Ejemplo n.º 32
0
 public CountriesAttribute()
 {
     _umbracoWrapper = DependencyResolver.Current.GetService <IUmbracoWrapper>();
     _modelConverter = DependencyResolver.Current.GetService <IModelConverter>();
 }