Exemplo n.º 1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="UserAccountController"/> class.
        /// </summary>
        /// <param name="service">The service.</param>
        /// <param name="appInfo">The application information.</param>
        public UserAccountController(IUserAccountService service, IApplicationInformation appInfo)
        {
            _userService = service;
            _appInfo     = appInfo;

            Module = ModelType.UserAccount;
        }
Exemplo n.º 2
0
 public EmbyClient(IAppLogger logger, IDevice device, ICryptographyProvider cryptographyProvider,
                   IConnectionInformation connectionInformation, IApplicationInformation applicationInformation)
     : base(logger, connectionInformation.ServerUrl, applicationInformation.Name, device,
            applicationInformation.Version, cryptographyProvider)
 {
     _connectionInformation = connectionInformation;
 }
Exemplo n.º 3
0
 public AboutViewModel(IEmailComposeTaskFacade emailComposeTask, IApplicationInformation applicationInformation,
     IApplicationMarketplaceFacade marketplaceFacade, INavigationService navigationService)
 {
     this.emailComposeTask = emailComposeTask;
     this.applicationInformation = applicationInformation;
     this.marketplaceFacade = marketplaceFacade;
     this.navigationService = navigationService;
 }
Exemplo n.º 4
0
        protected MessagingEventHandler(IApplicationInformation appInfo)
        {
            AppInfo = appInfo;
            var evtStr = typeof(TEvent).Name;

            if (!string.IsNullOrEmpty(evtStr))
            {
                Module = evtStr.Replace("Event", "");
            }
        }
Exemplo n.º 5
0
 public AddJobsViewModel(INavigationService navigationService, IJobController jobController,
     IJobProviderFactory jobProviderFactory, IJobRepository jobRepository, ISchedulerAccessor schedulerAccessor,
     IApplicationInformation applicationInformation, IMessageBoxFacade messageBoxFacade)
 {
     this.navigationService = navigationService;
     this.jobController = jobController;
     this.jobProviderFactory = jobProviderFactory;
     this.jobRepository = jobRepository;
     this.schedulerAccessor = schedulerAccessor;
     this.applicationInformation = applicationInformation;
     this.messageBoxFacade = messageBoxFacade;
 }
Exemplo n.º 6
0
        protected EmailEventHandler(IEmailService emailService,
                                    IApplicationInformation appInfo,
                                    IMessagingFormatter <TEvent> formatter)
            : base(appInfo)
        {
            if (emailService == null)
            {
                throw new ArgumentNullException("emailService");
            }

            _emailService     = emailService;
            _messageFormatter = formatter;
        }
Exemplo n.º 7
0
        public MessagingFormatter(MessagingType type, IApplicationInformation appInfo)
        {
            _module  = typeof(TEvent).Name.Replace("Event", string.Empty); // module;
            _type    = type;
            _appInfo = appInfo;

            switch (_type)
            {
            case MessagingType.Email:
                _bodyTemplatePath    = AppConstants.MessageTemplatesPath.EmailBody;
                _subjectTemplatePath = AppConstants.MessageTemplatesPath.EmailSubject;
                break;
            }
        }
Exemplo n.º 8
0
 public Bootstrap(IApplicationSettings applicationSettings, IClock clock, 
     IMessageBoxFacade messageBox, IMutexService mutexService,
     ILogManager logManager, ISettingsApplier settingsApplier,
     IJobRepository jobRepository, IPeriodicJobUpdateService periodicJobUpdateService,
     IApplicationInformation applicationInformation)
 {
     this.applicationSettings = applicationSettings;
     this.clock = clock;
     this.messageBox = messageBox;
     this.mutexService = mutexService;
     this.logManager = logManager;
     this.jobRepository = jobRepository;
     this.periodicJobUpdateService = periodicJobUpdateService;
     this.settingsApplier = settingsApplier;
     this.applicationInformation = applicationInformation;
 }
Exemplo n.º 9
0
 public JobUpdateService(IJobProviderFactory jobProviderFactory, IJobRepository jobRepository,
     IClock clock, ISettingsService settingsService, IMutexService mutexService,
     ISchedulerAccessor schedulerAccessor, IApplicationTileService applicationTileService,
     IJobNotificationService jobNotificationService, ILog log,
     INetworkInterfaceFacade networkInterfaceFacade, IApplicationInformation applicationInformation)
 {
     this.jobProviderFactory = jobProviderFactory;
     this.jobRepository = jobRepository;
     this.clock = clock;
     this.settingsService = settingsService;
     this.mutexService = mutexService;
     this.schedulerAccessor = schedulerAccessor;
     this.applicationTileService = applicationTileService;
     this.jobNotificationService = jobNotificationService;
     this.log = log;
     this.networkInterfaceFacade = networkInterfaceFacade;
     this.applicationInformation = applicationInformation;
 }
Exemplo n.º 10
0
 public AppSettingsService(IUnitOfWorkAsync unitOfWork, IApplicationInformation appInfo)
     : base(unitOfWork)
 {
     _defaultSettings = new AppSettings
     {
         ShortName           = appInfo.ApplicationName,
         LongName            = appInfo.ApplicationName,
         Description         = appInfo.ApplicationName,
         Copyright           = appInfo.ApplicationName,
         Keywords            = null,
         Version             = null,
         Email               = appInfo.Email,
         EmailSignature      = appInfo.ApplicationName,
         LongDateTimeFormat  = null,
         ShortDateTimeFormat = null,
         TinyDateTimeFormat  = null,
         GoogleAnalyticsKey  = null
     };
 }
Exemplo n.º 11
0
 internal Information(IApplicationInformation application, IMachineInformation machine, IUserInformation user)
 {
     Application = application;
     Machine = machine;
     User = user;
 }
Exemplo n.º 12
0
 public UserAgent(IApplicationInformation applicationInformation)
 {
     _name = applicationInformation.Title ?? "Unknown";
     _version = applicationInformation.Version ?? "0.0";
 }
Exemplo n.º 13
0
 public UserAgent(IApplicationInformation applicationInformation)
 {
     this._name    = applicationInformation.Title ?? "Unknown";
     this._version = applicationInformation.Version ?? "0.0";
 }
Exemplo n.º 14
0
 public static void SetParameter(this IMediaStreamFacadeBase mediaStreamFacade, IApplicationInformation applicationInformation)
 {
     mediaStreamFacade.Builder.RegisterSingleton <IApplicationInformation>(applicationInformation);
 }
 public EmailUserAccountEventHandler(IEmailService emailService,
                                     IApplicationInformation appInfo,
                                     IMessagingFormatter <UserAccountEvent> formatter)
     : base(emailService, appInfo, formatter)
 {
 }
Exemplo n.º 16
0
 public static ProductInfoHeaderValue CreateUserAgent(this IApplicationInformation applicationInformation);
Exemplo n.º 17
0
 /// <summary>
 /// Creates a new object.
 /// </summary>
 /// <param name="webSite"></param>
 public DirectoryEntryJsonPage(WebSite webSite) : base(webSite)
 {
     _FeedManager            = Factory.Singleton.Resolve <IFeedManager>().Singleton;
     _ApplicationInformation = Factory.Singleton.Resolve <IApplicationInformation>();
 }