コード例 #1
0
ファイル: HomeController.cs プロジェクト: omidam81/Ver1.0
        // GET: Home

        public HomeController(
            IRepository<CurrencyRecord> currencyRepository,
            IRepository<OrderStatusRecord> orderStatusRepository,
            IOrderService orderService,
            ICampaignService campaignService,
            IShapeFactory shapeFactory,
            IContentManager contentManager,
            ISiteService siteService,
            IPayoutService payoutService,
            INotifier notifierService,
            ITeeyootMessagingService teeyootMessagingService,
            IWorkContextAccessor workContextAccessor)
        {
            _currencyRepository = currencyRepository;
            _orderStatusRepository = orderStatusRepository;
            _orderService = orderService;
            _campaignService = campaignService;
            _contentManager = contentManager;
            _siteService = siteService;
            _payoutService = payoutService;
            _notifierService = notifierService;
            _teeyootMessagingService = teeyootMessagingService;
            Shape = shapeFactory;

            T = NullLocalizer.Instance;
            _workContextAccessor = workContextAccessor;
        }
コード例 #2
0
ファイル: MediaServicesService.cs プロジェクト: rgardler/dpp
 public MediaServicesService(IOrchardServices orchardServices, 
     IShapeFactory shapeFactory, 
     ISiteService siteService, 
     IConfig config, 
     IBlobStorageService blobStorageService, 
     IRepository<EncodedMediaRecord> encodedMediaRepository, 
     IRepository<MediaItemRecord> mediaItemRepository, 
     IRepository<EncodingPresetRecord> encodingPresetRepository, 
     IRepository<ThumbnailRecord> thumbnailRepository,
     IRepository<VideoMediaItemRecord> videoMediaItemRepository,
    IWorkContextAccessor workContextAccessor)
 {
     _config = config;
     _blobStorageService = blobStorageService;
     _encodedMediaRepository = encodedMediaRepository;
     _mediaItemRepository = mediaItemRepository;
     _encodingPresetRepository = encodingPresetRepository;
     _thumbnailRepository = thumbnailRepository;
     _videoMediaItemRepository = videoMediaItemRepository;
     _workContextAccessor = workContextAccessor;
     _orchardServices = orchardServices;
     _shapeFactory = shapeFactory;
     _siteService = siteService;
     _logger = NullLogger.Instance;
 }
コード例 #3
0
 public AdminCommentController(ILog log, IContentItemService<Post> contentItemService, ICommentService commentService, ILocalizationService localizationService, IUserService userService, ISiteService siteService)
     : base(log, localizationService, userService, siteService)
 {
     this.log = log;
      this.commentService = commentService;
      this.contentItemService = contentItemService;
 }
コード例 #4
0
 public AddUsersViewModelFactory(IEmployeeService employeeService, IRolesService rolesService, ISiteService siteService, ISiteGroupService siteGroupService)
 {
     _employeeService = employeeService;
     _rolesService = rolesService;
     _siteService = siteService;
     _siteGroupService = siteGroupService;
 }
コード例 #5
0
 public TaxonomyImportService(ISiteService siteService, IContentManager contentManager, ITaxonomyService taxonomyService, IMembershipService membershipService)
 {
     _siteService = siteService;
     _contentManager = contentManager;
     _taxonomyService = taxonomyService;
     _membershipService = membershipService;
 }
コード例 #6
0
 public ActorsAdminController(ISiteService siteService, IRepository<ActorRecord> actorRepository, IShapeFactory shapeFactory, IOrchardServices orchardServices)
 {
     _siteService = siteService;
     _actorRepository = actorRepository;
     _orchardServices = orchardServices;
     Shape = shapeFactory;
 }
コード例 #7
0
        public SubscriptionController(
            IOrchardServices orchardServices,
            IForumService forumService,
            IThreadService threadService,
            IPostService postService,
            ISiteService siteService,
            IShapeFactory shapeFactory,
            IAuthorizationService authorizationService,
            IAuthenticationService authenticationService,
            ISubscriptionService subscriptionService,
            IThreadLastReadService threadLastReadService
            )
        {
            _orchardServices = orchardServices;
            _forumService = forumService;
            _threadService = threadService;
            _postService = postService;
            _siteService = siteService;
            _subscriptionService = subscriptionService;
            _authorizationService = authorizationService;
            _authenticationService = authenticationService;
            _threadLastReadService = threadLastReadService;

            T = NullLocalizer.Instance;
            Shape = shapeFactory;
        }
コード例 #8
0
ファイル: AdminController.cs プロジェクト: jchenga/Orchard2
 public AdminController(
     IAuthorizationService authorizationService,
     ITypeFeatureProvider typeFeatureProvider,
     ISession session,
     IStringLocalizer<AdminController> stringLocalizer,
     IHtmlLocalizer<AdminController> htmlLocalizer,
     ISiteService siteService,
     IShapeFactory shapeFactory,
     RoleManager<Role> roleManager,
     IRoleProvider roleProvider,
     INotifier notifier,
     IEnumerable<IPermissionProvider> permissionProviders
     )
 {
     TH = htmlLocalizer;
     _notifier = notifier;
     _roleProvider = roleProvider;
     _typeFeatureProvider = typeFeatureProvider;
     _permissionProviders = permissionProviders;
     _roleManager = roleManager;
     _shapeFactory = shapeFactory;
     _siteService = siteService;
     T = stringLocalizer;
     _authorizationService = authorizationService;
     _session = session;
 }
コード例 #9
0
ファイル: PublicationService.cs プロジェクト: rgardler/dpp
 public PublicationService(IOrchardServices orchardServices, IContentManager contentManager, IShapeFactory shapeFactory, ISiteService siteService)
 {
     _orchardServices = orchardServices;
     _contentManager = contentManager;
     _shapeFactory = shapeFactory;
     _siteService = siteService;
 }
コード例 #10
0
        public OwinMiddlewares(ISiteService siteService) {
            Logger = NullLogger.Instance;

            var site = siteService.GetSiteSettings();
            var azureSettings = site.As<AzureSettingsPart>();

            _azureClientId = ((azureSettings.ClientId == null) || (azureSettings.ClientId == string.Empty)) ? 
                "[example: 82692da5-a86f-44c9-9d53-2f88d52b478b]" : azureSettings.ClientId;

            _azureTenant = ((azureSettings.Tenant == null) || (azureSettings.Tenant == string.Empty)) ? 
                "faketenant.com" : azureSettings.Tenant;

            _azureADInstance = ((azureSettings.ADInstance == null) || (azureSettings.ADInstance == string.Empty)) ? 
                "https://login.microsoft.com/{0}" : azureSettings.ADInstance;

            _logoutRedirectUri = ((azureSettings.LogoutRedirectUri == null) || (azureSettings.LogoutRedirectUri == string.Empty)) ? 
                site.BaseUrl : azureSettings.LogoutRedirectUri;

            _azureAppName = ((azureSettings.AppName == null) || (azureSettings.AppName == string.Empty)) ? 
                "[example: MyAppName]" : azureSettings.AppName;

            _sslEnabled = azureSettings.SSLEnabled;

            _azureWebSiteProtectionEnabled = azureSettings.AzureWebSiteProtectionEnabled;
        }
コード例 #11
0
 public AdvancedSitemapService(
     IRepository<SitemapRouteRecord> routeRepository, 
     IRepository<SitemapSettingsRecord> settingsRepository,
     IRepository<SitemapCustomRouteRecord> customRouteRepository,
     IContentManager contentManager,
     ICacheManager cacheManager,
     ISignals signals,
     IClock clock,
     IContentDefinitionManager contentDefinitionManager,
     IEnumerable<ISitemapRouteFilter> routeFilters,
     IEnumerable<ISitemapRouteProvider> routeProviders, 
     ISiteService siteService, 
     IEnumerable<ISpecializedSitemapProvider> specializedSitemapProviders)
 {
     _routeRepository = routeRepository;
     _settingsRepository = settingsRepository;
     _customRouteRepository = customRouteRepository;
     _contentManager = contentManager;
     _cacheManager = cacheManager;
     _signals = signals;
     _clock = clock;
     _contentDefinitionManager = contentDefinitionManager;
     _routeFilters = routeFilters;
     _routeProviders = routeProviders;
     _siteService = siteService;
     _specializedSitemapProviders = specializedSitemapProviders;
 }
コード例 #12
0
ファイル: ShellForm.cs プロジェクト: jeffboulanger/connectuo
        public ShellForm(IKernel kernel)
        {
            Asserter.AssertIsNotNull(kernel, "kernel");

            _kernel = kernel;
            _applicationService = _kernel.Get<IApplicationService>();
            _storageService = _kernel.Get<IStorageService>();
            _settingsService = _kernel.Get<ISettingsService>();
            _siteService = _kernel.Get<ISiteService>();
            _controller = _kernel.Get<ShellController>();

            Asserter.AssertIsNotNull(_applicationService, "_applicationService");
            Asserter.AssertIsNotNull(_storageService, "_storageService");
            Asserter.AssertIsNotNull(_settingsService, "_settingsService");
            Asserter.AssertIsNotNull(_siteService, "_siteService");

            InitializeComponent();

            _siteService.Register(SiteNames.ContentSite, contentPanel);
            _siteService.Register(SiteNames.NavigationSite, navigationPanel);
            _siteService.Register(SiteNames.ContentActionsSite, contentActionPanel);

            SetStyle(ControlStyles.OptimizedDoubleBuffer |
                     ControlStyles.AllPaintingInWmPaint |
                     ControlStyles.ResizeRedraw, true);
        }
コード例 #13
0
        public AdminUserController(
            IRepository<RoleRecord> roleRepository,
            IOrderService orderService,
            ICampaignService campaignService,
            IRepository<CurrencyRecord> currencyRepository,
            IMembershipService membershipService,
            ShellSettings shellSettings,
            IOrchardServices services,
            IUserService userService,
            ISiteService siteService,
            IShapeFactory shapeFactory)
        {
            _roleRepository = roleRepository;
            _orderService = orderService;
            _campaignService = campaignService;
            _currencyRepository = currencyRepository;
            _membershipService = membershipService;
            _shellSettings = shellSettings;
            Services = services;
            _siteService = siteService;
            _userService = userService;

            T = NullLocalizer.Instance;
            Shape = shapeFactory;
        }
コード例 #14
0
 public SettingsRecipeHandler(ISiteService siteService, IContentManager contentManager, Lazy<IEnumerable<IContentHandler>> handlers) {
     _siteService = siteService;
     _contentManager = contentManager;
     _handlers = handlers;
     Logger = NullLogger.Instance;
     T = NullLocalizer.Instance;
 }
コード例 #15
0
 public AnalyticsScriptInjectingFilter(
     ISiteService siteService,
     IResourceManager resourceManager)
 {
     _siteService = siteService;
     _resourceManager = resourceManager;
 }
コード例 #16
0
 public FacebookSuiteService(
     IHttpContextAccessor httpContextAccessor,
     ISiteService siteService)
 {
     _httpContextAccessor = httpContextAccessor;
     _siteService = siteService;
 }
コード例 #17
0
ファイル: SettingsStep.cs プロジェクト: jchenga/Orchard2
 public SettingsStep(
     ISiteService siteService,
     ILoggerFactory logger,
     IStringLocalizer<ISiteService> localizer) : base(logger, localizer)
 {
     _siteService = siteService;
 }
コード例 #18
0
ファイル: WikiPageController.cs プロジェクト: kevinthant/wiki
 public WikiPageController(IOrchardServices orchardServices, 
     IRepository<WikiPageAttachmentRecord> repoWikiAttachment,
     ITagService tagService,
     IAuthorizationService authorizationService,
     INotifier notifier,
     ISiteService siteService,
     ISearchService searchService,
     IShapeFactory shapeFactory,
     IWikiPageService wikiPageService,
     IMediaService mediaService
    ){
     _orchardServices = orchardServices;
     _repoWikiAttachment = repoWikiAttachment;
     _tagService = tagService;
     _authorizationService = authorizationService;
     _notifier = notifier;
     _searchService = searchService;
     _siteService = siteService;
     _wikiPageService = wikiPageService;
     _mediaService = mediaService;
     Logger = NullLogger.Instance;
     Shape = shapeFactory;
    
     
 }
コード例 #19
0
        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="log"></param>
        /// <param name="localizationService"></param>
        /// <param name="siteService"></param>
        /// <param name="userService"></param>
        /// <param name="contentItemService"></param>
        /// <param name="contentItemServiceForPage"></param>
        /// <param name="commentService"></param>
        /// <param name="categoryService"></param>
        /// <param name="tagService"></param>
        /// <param name="searchService"></param>
        /// <param name="widgetService"></param>
        /// <param name="messageService"></param>
        protected ContentControllerBase( ILog log, 
                                       ILocalizationService localizationService,
                                       ISiteService siteService,
                                       IUserService userService,
                                       IContentItemService<Post> contentItemService,
                                       IContentItemService<Page> contentItemServiceForPage,
                                       ICommentService commentService,
                                       ICategoryService categoryService,
                                       ITagService tagService,
                                       ISearchService searchService,
                                       IWidgetService widgetService,
                                       IMessageService messageService)
        {
            this.log = log;
             this.localizationService = IoC.Resolve<ILocalizationService>();
             this.userService = IoC.Resolve<IUserService>();
             this.siteService = IoC.Resolve<ISiteService>();
             this.categoryService = IoC.Resolve<ICategoryService>();
             this.tagService = IoC.Resolve<ITagService>();
             this.contentItemService = contentItemService;
             this.contentItemServiceForPage = contentItemServiceForPage;
             this.commentService = commentService;
             this.searchService = searchService;
             this.widgetService = widgetService;
             this.messageService = messageService;

             registeredWidgetComponents = new List<IWidgetComponent>();

             currentCulture = Thread.CurrentThread.CurrentUICulture;
        }
コード例 #20
0
 /// <summary>
 /// Constructor.
 /// </summary>
 public Install()
 {
     this._commonDao = IoC.Resolve<ICommonDao>();
     this._siteService = IoC.Resolve<ISiteService>();
     this._moduleLoader = IoC.Resolve<ModuleLoader>();
     this._fileService = IoC.Resolve<IFileService>();
 }
コード例 #21
0
ファイル: MenuCommands.cs プロジェクト: richinoz/Orchard1.6
 public MenuCommands(IWidgetsService widgetsService, ISiteService siteService, IMembershipService membershipService, IAdvancedMenuService menuService)
 {
     _widgetsService = widgetsService;
     _siteService = siteService;
     _membershipService = membershipService;
     _menuService = menuService;
 }
コード例 #22
0
ファイル: Migrations.cs プロジェクト: ccccccmd/Orchard.WeChat
 public Migrations(IContentManager contentManager
     , ISiteService siteService, IOrchardServices orchardServices)
 {
     _contentManager = contentManager;
     _siteService = siteService;
     _orchardServices = orchardServices;
 }
コード例 #23
0
 public UserEventHandler(
     IFacebookConnectService facebookConnectService,
     ISiteService siteService)
 {
     _facebookConnectService = facebookConnectService;
     _siteService = siteService;
 }
コード例 #24
0
 public ReportPostAdminController(
     IOrchardServices orchardServices,
     IForumService forumService,
     IThreadService threadService,
     IPostService postService,
     ISiteService siteService,
     IShapeFactory shapeFactory,
     IAuthorizationService authorizationService,
     IAuthenticationService authenticationService,
     ISubscriptionService subscriptionService,
     IReportPostService reportPostService,
     ICountersService countersService
     )
 {
     _orchardServices = orchardServices;
     _forumService = forumService;
     _threadService = threadService;
     _postService = postService;
     _siteService = siteService;
     _subscriptionService = subscriptionService;
     _authorizationService = authorizationService;
     _authenticationService = authenticationService;
     _reportPostService = reportPostService;
     _countersService = countersService;
     T = NullLocalizer.Instance;
     Shape = shapeFactory;
 }
コード例 #25
0
 public EpisodeController(ISiteService siteService, IEpisodeService episodeService, IUserService userService)
     : base(siteService, episodeService)
 {
     this._siteService = siteService;
     this._episodeService = episodeService;
     this._userService = userService;
 }
コード例 #26
0
 public ContainerFlattener(
     IShapeOutputGenerator shapeOutputGenerator,
     ISiteService siteService)
 {
     _shapeOutputGenerator = shapeOutputGenerator;
     _siteService = siteService;
 }
 public TelemetrySettingsAccessor(
     IAppConfigurationAccessor appConfigurationAccessor,
     ISiteService siteService)
 {
     _appConfigurationAccessor = appConfigurationAccessor;
     _siteService = siteService;
 }
コード例 #28
0
 public LiveCheckController(
     IClientService clientService,
     ISiteService siteService)
 {
     _clientService = clientService;
     _siteService = siteService;
 }
コード例 #29
0
        public AdminController(
            IContentManager contentManager,
            IContentItemDisplayManager contentItemDisplayManager,
            IContentDefinitionManager contentDefinitionManager,
            ISiteService siteService,
            INotifier notifier,
            ISession session,
            IShapeFactory shapeFactory,
            ILogger<AdminController> logger,
            IHtmlLocalizer<AdminController> localizer,
            IAuthorizationService authorizationService,
            IEnumerable<IContentAdminFilter> contentAdminFilters
            )
        {
            _contentAdminFilters = contentAdminFilters;
            _authorizationService = authorizationService;
            _notifier = notifier;
            _contentItemDisplayManager = contentItemDisplayManager;
            _session = session;
            _siteService = siteService;
            _contentManager = contentManager;
            _contentDefinitionManager = contentDefinitionManager;

            T = localizer;
            New = shapeFactory;
            Logger = logger;
        }
コード例 #30
0
 public SystemConfigurationController(ILog log, ISystemConfigurationService systemConfigurationService, IFeatureService featureService, ILocalizationService localizationService, IUserService userService, ISiteService siteService)
     : base(log, localizationService, userService, siteService)
 {
     this.log = log;
      this.systemConfigurationService = systemConfigurationService;
      this.featureService = featureService;
 }
コード例 #31
0
 public ScriptsMiddleware(RequestDelegate next, ISiteService siteService)
 {
     _next        = next;
     _siteService = siteService;
 }