Exemplo n.º 1
0
 public HomeController(IOptions <PlatformOptions> platformOptions, IOptions <WebAnalyticsOptions> webAnalyticsOptions, LicenseProvider licenseProvider, ISettingsManager settingsManager)
 {
     _platformOptions     = platformOptions.Value;
     _webAnalyticsOptions = webAnalyticsOptions.Value;
     _licenseProvider     = licenseProvider;
     _settingsManager     = settingsManager;
 }
Exemplo n.º 2
0
		public PlatformOptions GetPlatformOptions(Platform platform)
		{
			PlatformOptions result = null;

			switch (platform)
			{
				case Platform.Windows:
					result = _optionsWindows;
					break;
				case Platform.MacOSX:
					result = _optionsMacOSX;
					break;
				case Platform.Android:
					result = _optionsAndroid;
					break;
				case Platform.iOS:
					result = _optionsIOS;
					break;
				case Platform.tvOS:
					result = _optionsTVOS;
					break;
				case Platform.WindowsPhone:
					result = _optionsWindowsPhone;
					break;
				case Platform.WindowsUWP:
					result = _optionsWindowsUWP;
					break;
				case Platform.WebGL:
					result = _optionsWebGL;
					break;
			}

			return result;
		}
Exemplo n.º 3
0
        public PlatformOptions GetPlatformOptions(Platform platform)
        {
            PlatformOptions result = null;

#if UNITY_EDITOR
#if (UNITY_EDITOR_OSX && UNITY_EDITOR_64)
            result = _optionsMacOSX;
#elif UNITY_EDITOR_WIN
            result = _optionsWindows;
#endif
#else
            // Setup for running builds

#if (UNITY_STANDALONE_WIN)
            result = _optionsWindows;
#elif (UNITY_STANDALONE_OSX)
            result = _optionsMacOSX;
#elif (UNITY_IPHONE || UNITY_IOS)
            result = _optionsIOS;
#elif (UNITY_TVOS)
            result = _optionsTVOS;
#elif (UNITY_ANDROID)
            result = _optionsAndroid;
#elif (UNITY_WP8 || UNITY_WP81 || UNITY_WINRT_8_1)
            result = _optionsWindowsPhone;
#elif (UNITY_WSA_10_0)
            result = _optionsWindowsUWP;
#endif
#endif
            return(result);
        }
Exemplo n.º 4
0
        private string GetPlatformFilePath(Platform platform, ref string filePath, ref FileLocation fileLocation)
        {
            string result = string.Empty;

            XDebugger.Log(" GetPlatformFilePath.path ");
            // Replace file path and location if overriden by platform options
            if (platform != Platform.Unknown)
            {
                PlatformOptions options = GetPlatformOptions(platform);
                XDebugger.Log(" options = " + options);
                if (options != null)
                {
                    if (options.overridePath)
                    {
                        XDebugger.Log(" options.path =" + options.path);
                        XDebugger.Log(" options.pathLocation =" + options.pathLocation);
                        filePath     = options.path;
                        fileLocation = options.pathLocation;
                    }
                }
            }

            result = GetFilePath(filePath, fileLocation);
            XDebugger.Log("GetFilePath() result=" + result);
            return(result);
        }
Exemplo n.º 5
0
 public HomeController(IOptions <PlatformOptions> platformOptions, IOptions <WebAnalyticsOptions> webAnalyticsOptions, IWebHostEnvironment hostEnv, LicenseProvider licenseProvider)
 {
     _platformOptions     = platformOptions.Value;
     _webAnalyticsOptions = webAnalyticsOptions.Value;
     _hostEnv             = hostEnv;
     _licenseProvider     = licenseProvider;
 }
Exemplo n.º 6
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            TabLayoutResource = Resource.Layout.Tabbar;
            ToolbarResource   = Resource.Layout.Toolbar;

            base.OnCreate(savedInstanceState);
            Forms.SetFlags("Shell_Experimental", "Visual_Experimental", "CollectionView_Experimental", "FastRenderers_Experimental");
            DependencyService.Register <ToastNotification>();
            var platformOptions = new PlatformOptions
            {
                Style = NotificationStyle.Snackbar
            };

            ToastNotification.Init(this, platformOptions);
            Xamarin.Essentials.Platform.Init(this, savedInstanceState);
            ZXing.Net.Mobile.Forms.Android.Platform.Init();
            CrossCurrentActivity.Current.Init(this, savedInstanceState);
            ImageCircleRenderer.Init();
            FormsMaterial.Init(this, savedInstanceState);
            Forms.Init(this, savedInstanceState);
            Lottie.Forms.Droid.AnimationViewRenderer.Init();
            LoadApplication(new App());
            // Let's Play Gorilla!
            //LoadApplication(UXDivers.Gorilla.Droid.Player.CreateApplication(
            //    this,
            //    new UXDivers.Gorilla.Config("Good Gorilla")
            //    ));
        }
Exemplo n.º 7
0
 public ProcessSettings(PlatformOptions platformOptions)
 {
     if (!string.IsNullOrEmpty(platformOptions.ProcessesPath))
     {
         ToolPath = Path.GetFullPath(Path.Combine(platformOptions.ProcessesPath));
     }
 }
Exemplo n.º 8
0
 public HomeController(IOptions <PlatformOptions> platformOptions, IOptions <WebAnalyticsOptions> webAnalyticsOptions, IOptions <LocalStorageModuleCatalogOptions> localStorageModuleCatalogOptions, IOptions <PushNotificationOptions> pushNotificationOptions, LicenseProvider licenseProvider, ISettingsManager settingsManager)
 {
     _platformOptions     = platformOptions.Value;
     _webAnalyticsOptions = webAnalyticsOptions.Value;
     _localStorageModuleCatalogOptions = localStorageModuleCatalogOptions.Value;
     _pushNotificationOptions          = pushNotificationOptions.Value;
     _licenseProvider = licenseProvider;
     _settingsManager = settingsManager;
 }
 public CustomerDataExporter(ICustomerExportPagedDataSourceFactory customerExportPagedDataSourceFactory, IExportWriterFactory exportWriterFactory, IOptions <PlatformOptions> platformOptions,
                             IDynamicPropertySearchService dynamicPropertySearchService, IBlobStorageProvider blobStorageProvider, IBlobUrlResolver blobUrlResolver)
 {
     _customerExportPagedDataSourceFactory = customerExportPagedDataSourceFactory;
     _exportWriterFactory          = exportWriterFactory;
     _platformOptions              = platformOptions.Value;
     _blobStorageProvider          = blobStorageProvider;
     _dynamicPropertySearchService = dynamicPropertySearchService;
     _blobUrlResolver              = blobUrlResolver;
 }
Exemplo n.º 10
0
        public async Task ResumeAndPromptDescriptionAsync(IDialogContext context, IAwaitable <PlatformOptions> argument)
        {
            platformOptions = await argument;

            PromptDialog.Text(
                context: context,
                resume: ResumeAndPromptSummaryAsync,
                prompt: "Please provide a detailed description of the problem:",
                retry: "I didn't understand. Please try again.");
        }
Exemplo n.º 11
0
 public ModulesController(IExternalModuleCatalog externalModuleCatalog, IModuleInstaller moduleInstaller, IPushNotificationManager pushNotifier, IUserNameResolver userNameResolver, ISettingsManager settingsManager, IOptions <PlatformOptions> platformOptions, IOptions <ExternalModuleCatalogOptions> externalModuleCatalogOptions)
 {
     _externalModuleCatalog        = externalModuleCatalog;
     _moduleInstaller              = moduleInstaller;
     _pushNotifier                 = pushNotifier;
     _userNameResolver             = userNameResolver;
     _settingsManager              = settingsManager;
     _platformOptions              = platformOptions.Value;
     _externalModuleCatalogOptions = externalModuleCatalogOptions.Value;
 }
 private void WritePlatformOptions(JsonWriter writer, PlatformOptions options)
 {
     if (options == null || options.IsEmpty == true ) return;
     writer.WriteProperty("platformoptions");
     writer.StartObject();
     if (options.iOS != null)
         WriteIosOptions(writer, options.iOS);
     if (options.Android != null)
         WriteAndroidOptions(writer, options.Android);
     if (options.WindowsPhone != null)
         WriteWpOptions(writer, options.WindowsPhone);
     writer.EndObject();
 }
Exemplo n.º 13
0
 public PlatformExportImportController(
     IPlatformExportImportManager platformExportManager,
     IPushNotificationManager pushNotifier,
     ISettingsManager settingManager,
     IUserNameResolver userNameResolver,
     IOptions <PlatformOptions> options)
 {
     _platformExportManager = platformExportManager;
     _pushNotifier          = pushNotifier;
     _settingsManager       = settingManager;
     _userNameResolver      = userNameResolver;
     _platformOptions       = options.Value;
 }
        public PlatformExportImportController(IPlatformExportImportManager platformExportManager, IPushNotificationManager pushNotifier, IBlobStorageProvider blobStorageProvider, IBlobUrlResolver blobUrlResolver,
                                              ISettingsManager settingManager, IUserNameResolver userNameResolver, IHostingEnvironment hostingEnvironment, IOptions <PlatformOptions> options)
        {
            _platformExportManager = platformExportManager;
            _pushNotifier          = pushNotifier;
            _blobStorageProvider   = blobStorageProvider;
            _blobUrlResolver       = blobUrlResolver;
            _settingsManager       = settingManager;
            _userNameResolver      = userNameResolver;
            _hostEnv         = hostingEnvironment;
            _platformOptions = options.Value;

            _stringSampleDataUrl = options.Value.SampleDataUrl;
        }
Exemplo n.º 15
0
		private string GetPlatformFilePath(Platform platform, ref string filePath, ref FileLocation fileLocation)
		{
			string empty = string.Empty;
			if (platform != Platform.Unknown)
			{
				PlatformOptions currentPlatformOptions = GetCurrentPlatformOptions();
				if (currentPlatformOptions != null && currentPlatformOptions.overridePath)
				{
					filePath = currentPlatformOptions.path;
					fileLocation = currentPlatformOptions.pathLocation;
				}
			}
			return GetFilePath(filePath, fileLocation);
		}
Exemplo n.º 16
0
 public ExportJob(IDataExporter dataExporter,
                  IPushNotificationManager pushNotificationManager,
                  IOptions <PlatformOptions> platformOptions,
                  IExportProviderFactory exportProviderFactory,
                  ISettingsManager settingsManager,
                  IBlobStorageProvider blobStorageProvider,
                  IBlobUrlResolver blobUrlResolver)
 {
     _dataExporter            = dataExporter;
     _pushNotificationManager = pushNotificationManager;
     _platformOptions         = platformOptions.Value;
     _exportProviderFactory   = exportProviderFactory;
     _settingsManager         = settingsManager;
     _blobStorageProvider     = blobStorageProvider;
     _blobUrlResolver         = blobUrlResolver;
 }
 public ExportController(
     IEnumerable <Func <ExportDataRequest, IExportProvider> > exportProviderFactories,
     IKnownExportTypesRegistrar knownExportTypesRegistrar,
     IUserNameResolver userNameResolver,
     IPushNotificationManager pushNotificationManager,
     IOptions <PlatformOptions> platformOptions,
     IKnownExportTypesResolver knownExportTypesResolver,
     IAuthorizationService authorizationService)
 {
     _exportProviderFactories   = exportProviderFactories;
     _knownExportTypesRegistrar = knownExportTypesRegistrar;
     _userNameResolver          = userNameResolver;
     _pushNotificationManager   = pushNotificationManager;
     _platformOptions           = platformOptions.Value;
     _knownExportTypesResolver  = knownExportTypesResolver;
     _authorizationService      = authorizationService;
 }
Exemplo n.º 18
0
        protected override void OnCreate(Bundle bundle)
        {
            TabLayoutResource = Resource.Layout.tabs;
            ToolbarResource   = Resource.Layout.toolbar;

            base.OnCreate(bundle);

            DependencyService.Register <ToastNotification>(); // Register your dependency
            // If you are using Android you must pass through the activity
            var platformOptions = new PlatformOptions();

            platformOptions.Style = NotificationStyle.Snackbar;
            ToastNotification.Init(this, platformOptions);


            global::Xamarin.Forms.Forms.Init(this, bundle);
            LoadApplication(new App(new AndroidInitializer(this)));
        }
 private void WritePlatformOptions(JsonWriter writer, PlatformOptions options)
 {
     if (options == null || options.IsEmpty == true)
     {
         return;
     }
     writer.WriteProperty("platformoptions");
     writer.StartObject();
     if (options.iOS != null)
     {
         WriteIosOptions(writer, options.iOS);
     }
     if (options.Android != null)
     {
         WriteAndroidOptions(writer, options.Android);
     }
     if (options.WindowsPhone != null)
     {
         WriteWpOptions(writer, options.WindowsPhone);
     }
     writer.EndObject();
 }
Exemplo n.º 20
0
        private string GetPlatformFilePath(Platform platform, ref string filePath, ref FileLocation fileLocation)
        {
            string result = string.Empty;

            // Replace file path and location if overriden by platform options
            if (platform != Platform.Unknown)
            {
                PlatformOptions options = GetCurrentPlatformOptions();
                if (options != null)
                {
                    if (options.overridePath)
                    {
                        filePath     = options.path;
                        fileLocation = options.pathLocation;
                    }
                }
            }

            result = GetFilePath(filePath, fileLocation);

            return(result);
        }
 public OrderModuleController(
     ICustomerOrderService customerOrderService
     , ICustomerOrderSearchService searchService
     , IStoreService storeService
     , IUniqueNumberGenerator numberGenerator
     , IPlatformMemoryCache platformMemoryCache
     , Func <IOrderRepository> repositoryFactory
     , ICustomerOrderBuilder customerOrderBuilder
     , IShoppingCartService cartService
     , IChangeLogSearchService changeLogSearchService
     , INotificationTemplateRenderer notificationTemplateRenderer
     , INotificationSearchService notificationSearchService
     , ICustomerOrderTotalsCalculator totalsCalculator
     , IAuthorizationService authorizationService
     , IOptions <PlatformOptions> platformOptions
     , IBlobStorageProvider blobStorageProvider
     , IConverter converter
     , IOptions <HtmlToPdfOptions> htmlToPdfOptions)
 {
     _customerOrderService         = customerOrderService;
     _searchService                = searchService;
     _uniqueNumberGenerator        = numberGenerator;
     _storeService                 = storeService;
     _platformMemoryCache          = platformMemoryCache;
     _repositoryFactory            = repositoryFactory;
     _customerOrderBuilder         = customerOrderBuilder;
     _cartService                  = cartService;
     _changeLogSearchService       = changeLogSearchService;
     _notificationTemplateRenderer = notificationTemplateRenderer;
     _notificationSearchService    = notificationSearchService;
     _totalsCalculator             = totalsCalculator;
     _authorizationService         = authorizationService;
     _platformOptions              = platformOptions.Value;
     _blobStorageProvider          = blobStorageProvider;
     _htmlToPdfOptions             = htmlToPdfOptions.Value;
     _converter = converter;
 }
Exemplo n.º 22
0
		public PlatformOptions GetCurrentPlatformOptions()
		{
			PlatformOptions platformOptions = null;
			return _optionsWindows;
		}
Exemplo n.º 23
0
 public LicenseProvider(IOptions <PlatformOptions> platformOptions, IBlobStorageProvider blobStorageProvider, IBlobUrlResolver blobUrlResolver)
 {
     _platformOptions     = platformOptions.Value;
     _blobStorageProvider = blobStorageProvider;
     _blobUrlResolver     = blobUrlResolver;
 }
        public StartupBusConfigurator(PlatformOptions platformOptions)
        {
            _platformOptions = platformOptions;

            _platformOptions.TryGetSchedulerEndpointAddress(out _schedulerEndpointAddress);
        }
Exemplo n.º 25
0
 public LicensingController(IHostingEnvironment hostingEnv, IOptions <PlatformOptions> platformOptions)
 {
     _hostingEnv      = hostingEnv;
     _platformOptions = platformOptions.Value;
 }
 public AssetsController(IBlobStorageProvider blobProvider, IBlobUrlResolver urlResolver, IOptions<PlatformOptions> platformOptions)
 {
     _blobProvider = blobProvider;
     _urlResolver = urlResolver;
     _platformOptions = platformOptions.Value;
 }
Exemplo n.º 27
0
 public LicenseProvider(IOptions <PlatformOptions> platformOptions)
 {
     _platformOptions = platformOptions.Value;
 }
Exemplo n.º 28
0
 public LicensingController(IOptions <PlatformOptions> platformOptions, ISettingsManager settingsManager)
 {
     _platformOptions = platformOptions.Value;
     _settingsManager = settingsManager;
 }
Exemplo n.º 29
0
 public LicensingController(IOptions <PlatformOptions> platformOptions)
 {
     _platformOptions = platformOptions.Value;
 }
Exemplo n.º 30
0
 public HomeController(IOptions <PlatformOptions> platformOptions, IOptions <WebAnalyticsOptions> webAnalyticsOptions, IHostingEnvironment hostEnv)
 {
     _platformOptions     = platformOptions.Value;
     _webAnalyticsOptions = webAnalyticsOptions.Value;
     _hostEnv             = hostEnv;
 }
 public SomeSettings(PlatformOptions platformOptions) : base(platformOptions)
 {
 }