public IdentityUserController(ILogger <IdentityUserController> logger, IFactoryWrapper factoryWrapper) : base(factoryWrapper) { Constructing(); _logger = logger; Constructed(); }
/// <summary> /// Initializes a new instance of the Server class /// </summary> /// <param name="exposedObjects">A Dictionary containing objects that are exposed through this service</param> /// <param name="useExtendedProxying">indicates whether to use extended proxies</param> /// <param name="useSecurity">indicates whether to use security on this service</param> /// <param name="security">the custom server security implementation to use</param> protected BaseServer(IDictionary <string, object> exposedObjects, bool useExtendedProxying, bool useSecurity, ICustomServerSecurity security) : this() { this.useExtendedProxying = useExtendedProxying; this.serverSecurity = security; this.plugins = new DictionaryWrapper(exposedObjects, extendedProxies, useSecurity); }
public AccountController(ILogger <AccountController> logger, IFactoryWrapper factoryWrapper) : base(factoryWrapper) { Constructing(); _logger = logger; Constructed(); }
/// <summary> /// Initializes a new instance of the Server class /// </summary> protected BaseServer(PluginFactory factory, bool useExtendedProxying, bool useSecurity, ICustomServerSecurity security) : this() { this.useExtendedProxying = useExtendedProxying; this.serverSecurity = security; this.plugins = new FactoryWrapper(factory, extendedProxies, useSecurity); }
public HomeController(ILogger <HomeController> logger, IFactoryWrapper factoryWrapper) { Constructing(); _logger = logger; _factoryWrapper = factoryWrapper; Constructed(); }
public void Initialize(ISearchIndex index, string indexName) { CloudSearchProviderSuggestionIndex searchProviderIndex = index as CloudSearchProviderSuggestionIndex; if (searchProviderIndex == null) { throw new NotSupportedException($"Only {typeof(CloudSearchProviderIndex).Name} is supported"); } ConnectionStringSettings connectionString1 = ConfigurationManager.ConnectionStrings[searchProviderIndex.ConnectionStringName]; if (connectionString1 == null) { throw new Sitecore.Exceptions.ConfigurationException($"The connection string for '{searchProviderIndex.ConnectionStringName}' is not provided."); } string[] strArray = connectionString1.ConnectionString.Split(new string[1] { "|" }, StringSplitOptions.RemoveEmptyEntries); IFactoryWrapper instance = _serviceCollectionClient.GetInstance <IFactoryWrapper>(); foreach (string connectionString2 in strArray) { try { ISearchService searchService = instance.CreateObject <ISearchService>("contentSearch/searchService", true); (searchService as ISearchIndexInitializable)?.Initialize(searchProviderIndex); var ssci = searchService as ISearchServiceConnectionInitializable; if (ssci != null) { if (indexName != null) { ssci.Initialize(indexName, connectionString2); } else { ssci.Initialize(searchProviderIndex.SearchCloudIndexName, connectionString2); } } if (searchService is ISearchServiceSchemaSyncNotification syncNotification) { syncNotification.SchemaSynced += new EventHandler(SearchServiceOnSchemaSynced); } _innerServices.Add(searchService); } catch (Exception ex) { SearchLog.Log.Info("Search service connection string initialization failed.", ex); } } if (!_innerServices.Any()) { throw new CloudSearchCompositeSearchServiceException("There is no search service available."); } Name = string.Join(";", _innerServices.Select(x => x.Name)); Schema = new CloudSearchIndexSchema(ExtractSchemaSnapshot()); }
protected MvcController(IFactoryWrapper factoryWrapper) { Constructing(); Factory = factoryWrapper; Constructed(); }
public ContactController(IFactoryWrapper factoryWrapper) : base(factoryWrapper) { }
public AppTranslationController(IFactoryWrapper factoryWrapper) : base(factoryWrapper) { }
public CalendarEntryController(IFactoryWrapper factoryWrapper) : base(factoryWrapper) { }
protected AccessController(IFactoryWrapper factoryWrapper) : base(factoryWrapper) { Constructing(); Constructed(); }
public CloudSearchProviderIndexName(IFactoryWrapper wrapper) { factoryWrapper = wrapper; }
public BillController(IFactoryWrapper factoryWrapper) { _factoryWrapper = factoryWrapper; }
public HolidayEntryController(IFactoryWrapper factoryWrapper) : base(factoryWrapper) { }