C# Class AzureWebFarm.Services.SyncService

Inheritance: ISyncService
Show file Open project: MRCollective/AzureWebFarm Class Usage Examples

Public Properties

Property Type Description
SyncWait int

Public Methods

Method Description
DeploySitesFromLocal ( ) : void
Dispose ( ) : void
PackageSitesToLocal ( ) : void

Packages sites that are in IIS but not in local temp storage. There are new sites that have been deployed to this instance using Web Deploy.

SyncBlobToLocal ( ) : void
SyncForever ( Func interval ) : void
SyncLocalToBlob ( ) : void
SyncOnce ( ) : void
SyncService ( IWebSiteRepository sitesRepository, ISyncStatusRepository syncStatusRepository, Microsoft.WindowsAzure.CloudStorageAccount storageAccount, string localSitesPath, string localTempPath, IEnumerable directoriesToExclude, IEnumerable sitesToExclude, Func syncEnabled, IISManager iisManager, ILoggerFactory loggerFactory, LoggerLevel logLevel ) : System
UpdateIISSitesFromTableStorage ( ) : void

Protected Methods

Method Description
OnPing ( ) : void
OnSiteDeleted ( string siteName ) : void
OnSiteUpdated ( string siteName ) : void

Private Methods

Method Description
EnumerateLocalEntries ( ) : FileEntry>>.IEnumerable
GetFolderLastModifiedTimeUtc ( string sitePath ) : System.DateTime
IsExcluded ( string topPath ) : bool
UpdateSyncStatus ( string webSiteName, SyncInstanceStatus status, Exception lastError = null ) : void

Method Details

DeploySitesFromLocal() public method

public DeploySitesFromLocal ( ) : void
return void

Dispose() public method

public Dispose ( ) : void
return void

OnPing() protected method

protected OnPing ( ) : void
return void

OnSiteDeleted() protected method

protected OnSiteDeleted ( string siteName ) : void
siteName string
return void

OnSiteUpdated() protected method

protected OnSiteUpdated ( string siteName ) : void
siteName string
return void

PackageSitesToLocal() public method

Packages sites that are in IIS but not in local temp storage. There are new sites that have been deployed to this instance using Web Deploy.
public PackageSitesToLocal ( ) : void
return void

SyncBlobToLocal() public method

public SyncBlobToLocal ( ) : void
return void

SyncForever() public method

public SyncForever ( Func interval ) : void
interval Func
return void

SyncLocalToBlob() public method

public SyncLocalToBlob ( ) : void
return void

SyncOnce() public method

public SyncOnce ( ) : void
return void

SyncService() public method

public SyncService ( IWebSiteRepository sitesRepository, ISyncStatusRepository syncStatusRepository, Microsoft.WindowsAzure.CloudStorageAccount storageAccount, string localSitesPath, string localTempPath, IEnumerable directoriesToExclude, IEnumerable sitesToExclude, Func syncEnabled, IISManager iisManager, ILoggerFactory loggerFactory, LoggerLevel logLevel ) : System
sitesRepository IWebSiteRepository
syncStatusRepository ISyncStatusRepository
storageAccount Microsoft.WindowsAzure.CloudStorageAccount
localSitesPath string
localTempPath string
directoriesToExclude IEnumerable
sitesToExclude IEnumerable
syncEnabled Func
iisManager IISManager
loggerFactory ILoggerFactory
logLevel LoggerLevel
return System

UpdateIISSitesFromTableStorage() public method

public UpdateIISSitesFromTableStorage ( ) : void
return void

Property Details

SyncWait public static property

public static int SyncWait
return int