Esempio n. 1
0
 /// <summary>
 /// Downloads a page and all its references into a Site Storage
 /// </summary>
 /// <param name="url">The url of the page to download</param>
 /// <param name="storage">The storage into which to store the page and its references</param>
 /// <param name="rootFileName">The rootfile name for the ISiteStorage</param>
 /// <param name="target">An object implementing the
 /// ISynchronizeInvoke interface.  All events will be delivered
 /// through this target, ensuring that they are delivered to the
 /// correct thread.</param>
 public AsyncPageDownload(
     string url,
     ISiteStorage storage,
     string rootFileName,
     ISynchronizeInvoke target) : this(url, storage, rootFileName, "", target)
 {
 }
 public ProjectViewModel(ISiteStorage siteStorage, IProjectProvider projectProvider, ITemplateProvider templateProvider, IComposer composer)
 {
     this.siteStorage = siteStorage;
     this.projectProvider = projectProvider;
     this.templateProvider = templateProvider;
     this.composer = composer;
 }
 /// <summary>
 /// Downloads a page and all its references into a Site Storage
 /// </summary>
 /// <param name="url">The url of the page to download</param>
 /// <param name="storage">The storage into which to store the page and its references</param>
 /// <param name="rootFileName">The rootfile name for the ISiteStorage</param>
 /// <param name="target">An object implementing the
 /// ISynchronizeInvoke interface.  All events will be delivered
 /// through this target, ensuring that they are delivered to the
 /// correct thread.</param>
 public AsyncPageDownload(
     string url,
     ISiteStorage storage,
     string rootFileName,
     ISynchronizeInvoke target) : this (url, storage, rootFileName, "", target)
 {
 }
Esempio n. 4
0
 /// <summary>
 /// Downloads a page and all its references into a Site Storage
 /// </summary>
 /// <param name="document">The IHTMLDocument2 to storage with its references</param>
 /// <param name="storage">The storage into which to store the page and its references</param>
 /// <param name="footFileName">The rootfile name for the ISiteStorage</param>
 /// <param name="storageRootPath">The path in which to place the items in the ISiteStorage</param>
 /// <param name="target">An object implementing the
 /// ISynchronizeInvoke interface.  All events will be delivered
 /// through this target, ensuring that they are delivered to the
 /// correct thread.</param>
 private AsyncPageDownload(IHTMLDocument2 document,
                           ISiteStorage storage, string rootFileName, string storageRootPath, ISynchronizeInvoke target) :
     base(target)
 {
     m_url          = document.url;
     m_htmlDocument = document;
     m_siteStorage  = storage;
     m_rootFile     = rootFileName;
     m_rootPath     = storageRootPath;
 }
Esempio n. 5
0
 public ClientOperationsDispatcher(
     ISiteStorage siteStorage,
     ITrackingTimer trackingTimer,
     IIdGenerator idGenerator,
     IClientNotifier clientNotifier)
 {
     _siteStorage    = siteStorage;
     _trackingTimer  = trackingTimer;
     _idGenerator    = idGenerator;
     _clientNotifier = clientNotifier;
 }
Esempio n. 6
0
        public ISiteController BuildSite(int index, ISiteStorage siteStorage)
        {
            var site       = GameObject.Instantiate(sitePrefab);
            var controller = site.GetComponent <ISiteController>();

            controller.Init(
                new SiteModel(index, siteStorage),
                BuildSiteView(site));
            controller.HideMessages();
            return(controller);
        }
Esempio n. 7
0
 /// <summary>
 /// Downloads a page and all its references into a Site Storage
 /// </summary>
 /// <param name="url">The url of the page to download</param>
 /// <param name="storage">The storage into which to store the page and its references</param>
 /// <param name="footFileName">The rootfile name for the ISiteStorage</param>
 /// <param name="storageRootPath">The path in which to place the items in the ISiteStorage</param>
 /// <param name="target">An object implementing the
 /// ISynchronizeInvoke interface.  All events will be delivered
 /// through this target, ensuring that they are delivered to the
 /// correct thread.</param>
 private AsyncPageDownload(
     string url,
     ISiteStorage storage,
     string rootFileName,
     string storageRootPath,
     ISynchronizeInvoke target) : base(target)
 {
     m_url         = url;
     m_siteStorage = storage;
     m_rootFile    = rootFileName;
     m_rootPath    = storageRootPath;
 }
Esempio n. 8
0
        public static ISiteStorage GetStorage(string storageType, Guid instanceId, string storageConfig)
        {
            ISiteStorage storage = null;

            storageType = storageType.ToLower();

            if (s_storageFactories.ContainsKey(storageType))
            {
                storage = s_storageFactories[storageType](instanceId, storageConfig);
            }

            return(storage);
        }
 public TimerAction(ISiteStatusChecker siteStatusChecker, ISiteStorage siteStorage, IClientNotifier clientNotifier)
 {
     _siteStatusChecker = siteStatusChecker;
     _siteStorage       = siteStorage;
     _clientNotifier    = clientNotifier;
 }
Esempio n. 10
0
 public void MoveToStorage(string name, ISiteStorage destination, string destName)
 {
 }
Esempio n. 11
0
 public SiteService(IGeolocator geolocator, ISiteStorage siteStorage, IArtportalenService artportalenService)
 {
     _geolocator = geolocator;
     _siteStorage = siteStorage;
     _artportalenService = artportalenService;
 }
 /// <summary>
 /// Downloads a page and all its references into a Site Storage
 /// </summary>
 /// <param name="document">The IHTMLDocument2 to storage with its references</param>
 /// <param name="storage">The storage into which to store the page and its references</param>
 /// <param name="footFileName">The rootfile name for the ISiteStorage</param>
 /// <param name="target">An object implementing the
 /// ISynchronizeInvoke interface.  All events will be delivered
 /// through this target, ensuring that they are delivered to the
 /// correct thread.</param>
 public AsyncPageDownload(IHTMLDocument2 document,
     ISiteStorage storage, string rootFileName, ISynchronizeInvoke target) :
     this (document, storage, rootFileName, "", target)
 {
 }
 /// <summary>
 /// Downloads a page and all its references into a Site Storage
 /// </summary>
 /// <param name="document">The IHTMLDocument2 to storage with its references</param>
 /// <param name="storage">The storage into which to store the page and its references</param>
 /// <param name="footFileName">The rootfile name for the ISiteStorage</param>
 /// <param name="storageRootPath">The path in which to place the items in the ISiteStorage</param>
 /// <param name="target">An object implementing the
 /// ISynchronizeInvoke interface.  All events will be delivered
 /// through this target, ensuring that they are delivered to the
 /// correct thread.</param>
 private AsyncPageDownload(IHTMLDocument2 document,
     ISiteStorage storage, string rootFileName, string storageRootPath, ISynchronizeInvoke target) :
     base (target)
 {
     m_url = document.url;
     m_htmlDocument = document;
     m_siteStorage = storage;
     m_rootFile = rootFileName;
     m_rootPath = storageRootPath;
 }
Esempio n. 14
0
 /// <summary>
 /// Downloads a page and all its references into a Site Storage
 /// </summary>
 /// <param name="document">The IHTMLDocument2 to storage with its references</param>
 /// <param name="storage">The storage into which to store the page and its references</param>
 /// <param name="footFileName">The rootfile name for the ISiteStorage</param>
 /// <param name="target">An object implementing the
 /// ISynchronizeInvoke interface.  All events will be delivered
 /// through this target, ensuring that they are delivered to the
 /// correct thread.</param>
 public AsyncPageDownload(IHTMLDocument2 document,
                          ISiteStorage storage, string rootFileName, ISynchronizeInvoke target) :
     this(document, storage, rootFileName, "", target)
 {
 }
Esempio n. 15
0
 public SiteModel(int index, ISiteStorage siteStorage)
 {
     this.index       = index;
     this.siteStorage = siteStorage;
 }
 /// <summary>
 /// Downloads a page and all its references into a Site Storage
 /// </summary>
 /// <param name="url">The url of the page to download</param>
 /// <param name="storage">The storage into which to store the page and its references</param>
 /// <param name="footFileName">The rootfile name for the ISiteStorage</param>
 /// <param name="storageRootPath">The path in which to place the items in the ISiteStorage</param>
 /// <param name="target">An object implementing the
 /// ISynchronizeInvoke interface.  All events will be delivered
 /// through this target, ensuring that they are delivered to the
 /// correct thread.</param>
 private AsyncPageDownload(
     string url,
     ISiteStorage storage,
     string rootFileName,
     string storageRootPath,
     ISynchronizeInvoke target) : base (target)
 {
     m_url = url;
     m_siteStorage = storage;
     m_rootFile = rootFileName;
     m_rootPath = storageRootPath;
 }
 public SiteManager(ISiteFactory siteFactory, ISiteStorage siteStorage)
 {
     this.siteFactory = siteFactory;
     this.siteStorage = siteStorage;
     siteStorage.AddPullCompleteEventListener(UpdateSites);
 }
Esempio n. 18
0
 public SiteService(IGeolocator geolocator, ISiteStorage siteStorage, IArtportalenService artportalenService)
 {
     _geolocator         = geolocator;
     _siteStorage        = siteStorage;
     _artportalenService = artportalenService;
 }
 public MonitoringEventHub(ISiteStorage siteStorage, IClientOperationsDispatcher availabilityTracker)
 {
     _siteStorage         = siteStorage;
     _availabilityTracker = availabilityTracker;
 }
Esempio n. 20
0
 public SignalRClientNotifier(IHubContext <MonitoringEventHub, IMonitoringClient> hubContext, ISiteStorage siteStorage)
 {
     _hubContext  = hubContext;
     _siteStorage = siteStorage;
 }
Esempio n. 21
0
 public SystemOperationsDispatcher(ISiteStorage siteStorage, ITrackingTimer trackingTimer)
 {
     _siteStorage   = siteStorage;
     _trackingTimer = trackingTimer;
 }