Exemplo n.º 1
0
        public void ResolveDependencies(ClientProxy clientProxy,
                                        ApplicationProxy applicationProxy)
        {
            m_ClientProxy      = clientProxy;
            m_ApplicationProxy = applicationProxy;

            m_GetCacheRootOperation?.ResolveDependencies(m_ClientProxy, m_ApplicationProxy);
            m_SetCacheRootOperation?.ResolveDependencies(m_ClientProxy, m_ApplicationProxy);
            m_ClearCacheRootOperation?.ResolveDependencies(m_ClientProxy, m_ApplicationProxy);
        }
Exemplo n.º 2
0
        private void ResolveDependencies()
        {
            var container = ServicesContainer.instance;

            m_ResourceLoader            = container.Resolve <ResourceLoader>();
            m_AssetStoreCachePathProxy  = container.Resolve <AssetStoreCachePathProxy>();
            m_UpmCacheRootClient        = container.Resolve <UpmCacheRootClient>();
            m_ApplicationProxy          = container.Resolve <ApplicationProxy>();
            m_AssetStoreDownloadManager = container.Resolve <AssetStoreDownloadManager>();
            m_ClientProxy = container.Resolve <ClientProxy>();
        }
Exemplo n.º 3
0
        public void ResolveDependencies(UpmCache upmCache,
                                        PackageManagerProjectSettingsProxy settingsProxy,
                                        ClientProxy clientProxy,
                                        ApplicationProxy applicationProxy)
        {
            m_UpmCache         = upmCache;
            m_SettingsProxy    = settingsProxy;
            m_ClientProxy      = clientProxy;
            m_ApplicationProxy = applicationProxy;

            m_GetRegistriesOperation?.ResolveDependencies(m_ClientProxy, m_ApplicationProxy);
            m_AddRegistryOperation?.ResolveDependencies(m_ClientProxy, m_ApplicationProxy);
            m_UpdateRegistryOperation?.ResolveDependencies(m_ClientProxy, m_ApplicationProxy);
            m_RemoveRegistryOperation?.ResolveDependencies(m_ClientProxy, m_ApplicationProxy);
        }
        public ServicesContainer()
        {
            // In the constructor we only need to worry about creating a brand new instance.
            // In the case of assembly reload, a deserialize step will automatically happen after the constructor
            // to restore all the serializable states/services and we don't need to worry about that
            m_HttpClientFactory    = new HttpClientFactory();
            m_UnityOAuthProxy      = new UnityOAuthProxy();
            m_SelectionProxy       = new SelectionProxy();
            m_AssetDatabaseProxy   = new AssetDatabaseProxy();
            m_UnityConnectProxy    = new UnityConnectProxy();
            m_ApplicationProxy     = new ApplicationProxy();
            m_EditorAnalyticsProxy = new EditorAnalyticsProxy();
            m_IOProxy       = new IOProxy();
            m_SettingsProxy = new PackageManagerProjectSettingsProxy();
            m_ClientProxy   = new ClientProxy();

            m_ResourceLoader   = new ResourceLoader();
            m_ExtensionManager = new ExtensionManager();

            m_AssetStoreCache           = new AssetStoreCache();
            m_AssetStoreClient          = new AssetStoreClient();
            m_AssetStoreOAuth           = new AssetStoreOAuth();
            m_AssetStoreUtils           = new AssetStoreUtils();
            m_AssetStoreRestAPI         = new AssetStoreRestAPI();
            m_AssetStoreDownloadManager = new AssetStoreDownloadManager();
            m_AssetStoreCallQueue       = new AssetStoreCallQueue();
            m_AssetStoreCachePathProxy  = new AssetStoreCachePathProxy();

            m_UpmCache           = new UpmCache();
            m_UpmClient          = new UpmClient();
            m_UpmRegistryClient  = new UpmRegistryClient();
            m_UpmCacheRootClient = new UpmCacheRootClient();

            m_PackageFiltering    = new PackageFiltering();
            m_PackageManagerPrefs = new PackageManagerPrefs();

            m_PackageDatabase = new PackageDatabase();
            m_PageManager     = new PageManager();

            // Since dictionaries doesn't survive through serialization, we always re-create the default registration
            m_RegisteredObjects = new Dictionary <Type, object>();
            RegisterDefaultServices();

            m_DependenciesResolved = false;
            m_InitializeState      = State.NotInitialized;
        }
Exemplo n.º 5
0
        public void ResolveDependencies(UpmCache upmCache,
                                        IOProxy IOProxy,
                                        PackageManagerProjectSettingsProxy settingsProxy,
                                        ClientProxy clientProxy,
                                        ApplicationProxy applicationProxy)
        {
            m_UpmCache         = upmCache;
            m_IOProxy          = IOProxy;
            m_SettingsProxy    = settingsProxy;
            m_ClientProxy      = clientProxy;
            m_ApplicationProxy = applicationProxy;

            m_SearchOperation?.ResolveDependencies(m_ClientProxy, m_ApplicationProxy);
            m_SearchOfflineOperation?.ResolveDependencies(m_ClientProxy, m_ApplicationProxy);
            m_ListOperation?.ResolveDependencies(m_ClientProxy, m_ApplicationProxy);
            m_ListOfflineOperation?.ResolveDependencies(m_ClientProxy, m_ApplicationProxy);
            m_AddOperation?.ResolveDependencies(m_ClientProxy, m_ApplicationProxy);
            m_RemoveOperation?.ResolveDependencies(m_ClientProxy, m_ApplicationProxy);
            m_EmbedOperation?.ResolveDependencies(m_ClientProxy, m_ApplicationProxy);
            m_AddAndRemoveOperation?.ResolveDependencies(m_ClientProxy, m_ApplicationProxy);
        }
Exemplo n.º 6
0
 public void ResolveDependencies(ClientProxy clientProxy, ApplicationProxy applicationProxy)
 {
     m_ClientProxy      = clientProxy;
     m_ApplicationProxy = applicationProxy;
 }