public BitbucketAdminController(IBitbucketService bitbucketService, INotifier notifier)
        {
            _bitbucketService = bitbucketService;
            _notifier = notifier;

            T = NullLocalizer.Instance;
        }
Пример #2
0
        public CampaignController(
            ICampaignService campaignService,
            ITShirtCostService tshirtService,
            IProductService productService,
            IPromotionService promotionService,
            IRepository<CurrencyRecord> currencyRepository,
            IWorkContextAccessor wca,
            INotifier notifier,
            IOrchardServices services,
            ICookieCultureService cookieCultureService,
            ICountryService countryService)
        {
            _currencyRepository = currencyRepository;
            Services = services;
            _tshirtService = tshirtService;
            _productService = productService;
            _campaignService = campaignService;
            _promotionService = promotionService;
            _wca = wca;
            _notifier = notifier;
            Logger = NullLogger.Instance;

            _cookieCultureService = cookieCultureService;
            //var culture = _wca.GetContext().CurrentCulture.Trim();
            _cultureUsed = _wca.GetContext().CurrentCulture.Trim();
            //cultureUsed = culture == "en-SG" ? "en-SG" : (culture == "id-ID" ? "id-ID" : "en-MY");
            _countryService = countryService;
        }
Пример #3
0
 public CommentController(IOrchardServices services, ICommentService commentService, INotifier notifier)
 {
     Services = services;
     _commentService = commentService;
     _notifier = notifier;
     T = NullLocalizer.Instance;
 }
Пример #4
0
		public PluginViewModel(Plugin plugin)
		{
			this.Plugin = plugin;

			var notifiers = plugin.OfType<INotifier>().ToArray();
			if (notifiers.Length >= 1) this.notifier = new AggregateNotifier(notifiers);
		}
Пример #5
0
 public PraiseController(IPraiseRepository praiseRepository, IPeopleRepository peopleRepository, INotifier notifier, IModerationsRepository moderationsRepository)
 {
     _praiseRepository = praiseRepository;
     _peopleRepository = peopleRepository;
     _notifier = notifier;
     _moderationsRepository = moderationsRepository;
 }
Пример #6
0
 public AkismetCommentValidator(INotifier notifier, IOrchardServices orchardServices)
 {
     _notifer = notifier;
     _orchardServices = orchardServices;
     Logger = NullLogger.Instance;
     T = NullLocalizer.Instance;
 }
Пример #7
0
 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;
 }
Пример #8
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;
        }
Пример #9
0
 public Commerce(IBillingProcessor billingProcessor, ICustomer customer, INotifier notifier, ILogger logger)
 {
     _BillingProcessor = billingProcessor;
     _Customer = customer;
     _Notifier = notifier;
     _Logger = logger;
 }
Пример #10
0
 public AdminController(IOrchardServices services, IThemeService themeService, IPreviewTheme previewTheme, IAuthorizer authorizer, INotifier notifier)
 {
     Services = services;
     _themeService = themeService;
     _previewTheme = previewTheme;
     T = NullLocalizer.Instance;
 }
Пример #11
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;
        }
 public WinGameCommand(INotifier notifier, IScoreboard scoreboard, IDataState data)
 {
     this.Data = data;
     this.Data.PlayTime = (DateTime.Now - this.Data.StartTime).TotalMinutes;
     this.Notifier = notifier;
     this.Scoreboard = scoreboard;
 }
Пример #13
0
        public AdminController(
            IContentDefinitionDisplayManager contentDefinitionDisplayManager,
            IContentDefinitionService contentDefinitionService,
            IContentDefinitionManager contentDefinitionManager,
            ShellSettings settings,
            IAuthorizationService authorizationService,
            ISession session,
            ILogger<AdminController> logger,
            IHtmlLocalizer<AdminMenu> htmlLocalizer,
            IStringLocalizer<AdminMenu> stringLocalizer,
            INotifier notifier
            )
        {
            _notifier = notifier;
            _contentDefinitionDisplayManager = contentDefinitionDisplayManager;
            _session = session;
            _authorizationService = authorizationService;
            _contentDefinitionService = contentDefinitionService;
            _contentDefinitionManager = contentDefinitionManager;
            _settings = settings;

            Logger = logger;
            T = htmlLocalizer;
            S = stringLocalizer;
        }
Пример #14
0
 public Commerce2(IBillingProcessorFactory billingProcessorFactory, ICustomer customer, INotifier notifier, ILogger logger)
 {
     _BillingProcessorFactory = billingProcessorFactory;
     _Customer = customer;
     _Notifier = notifier;
     _Logger = logger;
 }
        public PackageService(IPackageManager packageManager, INotifier notifier)
        {
            _packageManager = packageManager;
            _notifier = notifier;

            T = NullLocalizer.Instance;
        }
Пример #16
0
 public ContentController(IAuthorizer authorizer, IContentManager contentManager, INotifier notifier, IContentDefinitionManager contentDefinitionManager) {
     _authorizer = authorizer;
     _contentManager = contentManager;
     _notifier = notifier;
     _contentDefinitionManager = contentDefinitionManager;
     T = NullLocalizer.Instance;
 }
Пример #17
0
 public TeeyootMessagingService(IRepository<MailTemplateSubjectRecord> subjectRepository, IRepository<MailChimpSettingsPartRecord> mailChimpSettingsRepository, IContentManager contentManager, IRepository<CampaignRecord> campaignRepository,
     IMailChimpSettingsService settingsService,
     IMessageService messageService,
      INotifier notifier,
     IRepository<OrderRecord> orderRepository,
     IRepository<LinkOrderCampaignProductRecord> ocpRepository,
     IRepository<UserRolesPartRecord> userRolesPartRepository,
     IRepository<PayoutRecord> payoutsRepository,
     IRepository<PaymentInformationRecord> payoutInformRepository,
     IWorkContextAccessor wca,
     IRepository<CampaignProductRecord> campaignProductRepository,
     IRepository<CurrencyRecord> currencyRepository,
     IRepository<BringBackCampaignRecord> backCampaignRepository)
 {
     _mailSubjectService = new MailSubjectService(subjectRepository);
     _mailChimpSettingsRepository = mailChimpSettingsRepository;
     _contentManager = contentManager;
     _messageService = messageService;
     _settingsService = settingsService;
     _notifier = notifier;
     _orderRepository = orderRepository;
     _ocpRepository = ocpRepository;
     _currencyRepository = currencyRepository;
     _campaignRepository = campaignRepository;
     _userRolesPartRepository = userRolesPartRepository;
     _payoutsRepository = payoutsRepository;
     _payoutInformRepository = payoutInformRepository;
     _wca = wca;
     _campaignProductRepository = campaignProductRepository;
     _backCampaignRepository = backCampaignRepository;
 }
 public DefaultExceptionPolicy(INotifier notifier, Work<IAuthorizer> authorizer)
 {
     _notifier = notifier;
     _authorizer = authorizer;
     Logger = NullLogger.Instance;
     T = NullLocalizer.Instance;
 }
		public OptionAdminController(IOrchardServices services, IPollService pollService) {
			_services = services;
			_pollService = pollService;
			_notifier = _services.Notifier;
			New = _services.New;
			T = NullLocalizer.Instance;
		}
Пример #20
0
 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;
    
     
 }
 public EventsController(IUserProcessor userProcessor, INewsRepository newsRepository, INotifier notifier, IProjectProcessor projectProcessor)
 {
     this.userProcessor = userProcessor;
     this.newsRepository = newsRepository;
     this.notifier = notifier;
     this.projectProcessor = projectProcessor;
 }
 public FeatureCommands(IModuleService moduleService, INotifier notifier, IFeatureManager featureManager, ShellDescriptor shellDescriptor)
 {
     _moduleService = moduleService;
     _notifier = notifier;
     _featureManager = featureManager;
     _shellDescriptor = shellDescriptor;
 }
        public Authorizer(IAuthorizationService authorizationService, INotifier notifier, IContentManager contentManager)
        {
            _authorizationService = authorizationService;
            _notifier = notifier;
            _contentManager = contentManager;

            T = NullLocalizer.Instance;
        }
 public OperationNameTelemetryInitializer(IHttpContextAccessor httpContextAccessor, INotifier notifier)
     : base(httpContextAccessor)
 {
     if (notifier != null)
     {
         notifier.EnlistTarget(this);
     }
 }
		public PlatformExportImportController(IPlatformExportImportManager platformExportManager, INotifier eventNotifier, IBlobStorageProvider blobStorageProvider, IBlobUrlResolver blobUrlResolver, IPackageService packageService)
		{
			_platformExportManager = platformExportManager;
			_eventNotifier = eventNotifier;
			_blobStorageProvider = blobStorageProvider;
			_blobUrlResolver = blobUrlResolver;
			_packageService = packageService;
		}
Пример #26
0
 public HomeController(ITagService tagService, IAuthorizer authorizer, INotifier notifier, IContentManager contentManager)
 {
     _tagService = tagService;
     _authorizer = authorizer;
     _notifier = notifier;
     _contentManager = contentManager;
     T = NullLocalizer.Instance;
 }
        public AdminController(IAuthorizer authorizer, IGraphManager graphManager, INotifier notifier)
        {
            _authorizer = authorizer;
            _graphManager = graphManager;
            _notifier = notifier;

            T = NullLocalizer.Instance;
        }
Пример #28
0
 public Authorizer(
     IAuthorizationService authorizationService,
     INotifier notifier)
 {
     _authorizationService = authorizationService;
     _notifier = notifier;
     T = NullLocalizer.Instance;
 }
Пример #29
0
 public ContactController(IOrchardServices services, IContactService contactService, 
     IMessageManager messenger, INotifier notifier)
 {
     Services = services;
     _contactService = contactService;
     _messenger = messenger;
     _notifier = notifier;
 }
Пример #30
0
 public AdminController(IOrchardServices orchardServices, INotifier notifier, IContentManager contentManager, IWebStoreConfigurationService configurationService)
 {
     this._configurationService = configurationService;
     this._contentManager = contentManager;
     this._orchardServices = orchardServices;
     this.T = NullLocalizer.Instance;
     this._notifier = notifier;
 }
Пример #31
0
 public ProviderService(IProviderRepository providerRepository, IAddressRepository addressRepository, INotifier notifier) : base(notifier)
 {
     _providerRepository = providerRepository;
     _addressRepository  = addressRepository;
 }
Пример #32
0
 public Facade(INotifier notifier, IPublisher publisher, IArchiver archiver)
 {
     _notifier  = notifier;
     _publisher = publisher;
     _archiver  = archiver;
 }
Пример #33
0
 public AppBase(IUnitOfWork unitOfWork, INotifier notifier)
 {
     UnitOfWork = unitOfWork;
     _notifier  = notifier;
 }
Пример #34
0
 public MovieService(
     IMovieRepository movieRepository,
     INotifier notifier) : base(notifier)
 {
     _movieRepository = movieRepository;
 }
Пример #35
0
 public virtual ITransitionContext <TState, TEvent> CreateTransitionContext(IState <TState, TEvent> state, Missable <TEvent> eventId, object eventArgument, INotifier <TState, TEvent> notifier)
 {
     return(new TransitionContext <TState, TEvent>(state, eventId, eventArgument, notifier));
 }
Пример #36
0
 public SettingsWindow(INotifier notifier)
 {
     _notifier = notifier;
     InitializeComponent();
 }
Пример #37
0
 /// <summary>
 /// Adds a new UI notification of type Success
 /// </summary>
 /// <seealso cref="Orchard.UI.Notify.INotifier.Add()"/>
 /// <param name="message">A localized message to display</param>
 public static void Success(this INotifier notifier, LocalizedString message)
 {
     notifier.Add(NotifyType.Success, message);
 }
Пример #38
0
 public ModeloService(IModeloRepository modeloRepository, INotifier notifier) : base(notifier)
 {
     _modeloRepository = modeloRepository;
 }
Пример #39
0
 public static void Notify(this INotifier notifier, string message, NotificationType type = NotificationType.Information)
 {
     notifier.Notify(new Notification(message, type));
 }
Пример #40
0
 protected override Task <Result> OnUnloadingProjectItemAsync(INotifier notifier)
 {
     //卸载子项目时关闭面板
     AxisPluginService.Ins.CloseDockingPane(ProjectItem.Key);
     return(base.OnUnloadingProjectItemAsync(notifier));
 }
Пример #41
0
 public static void Information(this INotifier notifier, /*LocalizedString*/ string message, bool durable = true)
 {
     notifier.Add(NotifyType.Info, message, durable);
 }
Пример #42
0
 public WatchlistNotifierListener(INotifier notifier, IReadOnlyCollection <Guid> itemsInWatchlist)
 {
     _notifier         = notifier;
     _itemsInWatchlist = new HashSet <Guid>(itemsInWatchlist);
 }
        public TwitterPostHandler(ITokenizer tokenizer, IRepository <TwitterPostPartRecord> repository, ITwitterService TwitterService, IOrchardServices orchardServices, INotifier notifier)
        {
            _TwitterService  = TwitterService;
            _orchardServices = orchardServices;
            _tokenizer       = tokenizer;
            _notifier        = notifier;
            T = NullLocalizer.Instance;
            Filters.Add(StorageFilter.For(repository));
            //    Filters.Add(new ActivatingFilter<TwitterPostPart>("CommunicationAdvertising"));
            OnUpdated <TwitterPostPart>((context, part) => {
                TwitterPostPartSettingVM setting = part.Settings.GetModel <TwitterPostPartSettingVM>();
                var tokens = new Dictionary <string, object> {
                    { "Content", part.ContentItem }
                };
                if (!string.IsNullOrEmpty(setting.Description))
                {
                    part.TwitterDescription = _tokenizer.Replace(setting.Description, tokens);
                }
                var urlHelper = new UrlHelper(_orchardServices.WorkContext.HttpContext.Request.RequestContext);
                if (string.IsNullOrEmpty(setting.Image))
                {
                    part.TwitterPicture = "";
                }
                else
                {
                    string listid = _tokenizer.Replace(setting.Image, tokens);
                    listid        = listid.Replace("{", "").Replace("}", "");
                    Int32 idimage = 0;
                    Int32.TryParse(listid.Split(',')[0], out idimage);
                    if (idimage > 0)
                    {
                        var ContentImage    = _orchardServices.ContentManager.Get(idimage, VersionOptions.Published);
                        var pathdocument    = Path.Combine(ContentImage.As <MediaPart>().FolderPath, ContentImage.As <MediaPart>().FileName);
                        part.TwitterPicture = pathdocument;
                    }
                    else
                    {
                        part.TwitterPicture = "";
                    }
                }
                if (!string.IsNullOrEmpty(setting.Title))
                {
                    part.TwitterTitle = _tokenizer.Replace(setting.Title, tokens);
                }
            });
            OnPublished <TwitterPostPart>((context, Twitterpart) => {
                try {
                    PostToTwitterViewModel Fvm = new PostToTwitterViewModel();
                    Fvm.Message = Twitterpart.TwitterMessage;
                    if (Twitterpart.ContentItem.ContentType == "CommunicationAdvertising")
                    {
                        ICommunicationService _communicationService;
                        bool tryed = _orchardServices.WorkContext.TryResolve <ICommunicationService>(out _communicationService);
                        if (tryed)
                        {
                            Fvm.Link = _communicationService.GetCampaignLink("Twitter", Twitterpart);
                        }
                        else
                        {
                            Fvm.Link = "";
                        }
                    }
                    else
                    if (Twitterpart.TwitterCurrentLink)
                    {
                        var urlHelper = new UrlHelper(_orchardServices.WorkContext.HttpContext.Request.RequestContext);
                        Fvm.Link      = urlHelper.MakeAbsolute(urlHelper.ItemDisplayUrl(Twitterpart));// get current display link
                    }


                    Fvm.Picture = Twitterpart.TwitterPicture;

                    Fvm.AccountList = Twitterpart.AccountList;
                    if (Twitterpart.SendOnNextPublish && !Twitterpart.TwitterMessageSent)
                    {
                        if (Twitterpart.AccountList.Length == 0)
                        {
                            _notifier.Add(NotifyType.Warning, T("No Twitter account specified."));
                        }
                        else
                        {
                            ResponseAction rsp = _TwitterService.PostTwitter(Fvm);
                            if (rsp.Success)
                            {
                                Twitterpart.TwitterMessageSent = true;
                            }
                        }
                    }
                }
                catch (Exception ex) {
                    _notifier.Add(NotifyType.Error, T("Twitter error:" + ex.Message));
                }
            });
        }
Пример #44
0
 public ContentController(IAuthorizer authorizer, IContentManager contentManager, INotifier notifier, IContentDefinitionManager contentDefinitionManager)
 {
     _authorizer               = authorizer;
     _contentManager           = contentManager;
     _notifier                 = notifier;
     _contentDefinitionManager = contentDefinitionManager;
     T = NullLocalizer.Instance;
 }
Пример #45
0
 public BaseService(INotifier notifier)
 {
     _notifier = notifier;
 }
Пример #46
0
 public virtual void OnNotifyChange(INotifier notify, INotifyEvent e)
 {
 }
Пример #47
0
 public TestController(INotifier notifier, IUser user) : base(notifier, user)
 {
 }
Пример #48
0
 public void RemoveNotifier(INotifier val)
 {
 }
Пример #49
0
 /// <summary>
 ///     设置通知器
 /// </summary>
 /// <param name="notifier">通知逻辑</param>
 /// <returns></returns>
 public TaskBuilder WithNotifier(INotifier notifier)
 {
     Notifier = notifier;
     return(this);
 }
Пример #50
0
 public static void Error(this INotifier notifier, LocalizedString message, bool durable = true)
 {
     notifier.Add(NotifyType.Error, message, durable);
 }
 public NotifyFilter(INotifier notifier)
 {
     _notifier = notifier;
 }
 /// <summary>
 /// Adds a new UI notification of type Error
 /// </summary>
 /// <seealso cref="Coevery.UI.Notify.INotifier.Add()"/>
 /// <param name="message">A localized message to display</param>
 public static void Error(this INotifier notifier, LocalizedString message)
 {
     notifier.Add(NotifyType.Error, message);
 }
 public UserRepository(Context context, INotifier notifier) : base(context, notifier)
 {
 }
 /// <summary>
 /// Adds a new UI notification of type Information
 /// </summary>
 /// <seealso cref="Coevery.UI.Notify.INotifier.Add()"/>
 /// <param name="message">A localized message to display</param>
 public static void Information(this INotifier notifier, LocalizedString message)
 {
     notifier.Add(NotifyType.Information, message);
 }
Пример #55
0
 public void AddNotifier(INotifier val)
 {
     m_notifierList.Add(val);
 }
 /// <summary>
 /// Adds a new UI notification of type Warning
 /// </summary>
 /// <seealso cref="Coevery.UI.Notify.INotifier.Add()"/>
 /// <param name="message">A localized message to display</param>
 public static void Warning(this INotifier notifier, LocalizedString message)
 {
     notifier.Add(NotifyType.Warning, message);
 }
Пример #57
0
 public DenyOfferAuctionCommand(IOfferAuctionManager auctionManager, IReadOnlyOfferService offerService, IMapper mapper, INotifier notifier,
                                IHubManager <NotifierHub> hubManager)
 {
     this.auctionManager = auctionManager;
     this.offerService   = offerService;
     this.mapper         = mapper;
     this.notifier       = notifier;
     this.hubManager     = hubManager;
 }
Пример #58
0
        public IndexSettingsActionFilter(INotifier notifier)
        {
            _notifier = notifier;

            T = NullLocalizer.Instance;
        }
Пример #59
0
 public bool SendNotification(INotifier obj)
 {
     return(obj.Notify());
 }
Пример #60
0
 public static void InitializeNotifier(INotifier newNotifier)
 {
     _defaultNotifier = newNotifier;
 }