C# Класс cloudscribe.Core.Web.Components.SiteManager

Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание

Открытые методы

Метод Описание
AddHost ( System.Guid siteId, string hostName ) : Task
AliasIdIsAvailable ( System.Guid requestingSiteId, string requestedAliasId ) : Task
CountOtherSites ( System.Guid currentSiteId ) : Task
CreateAdminUser ( ISiteSettings site ) : Task
CreateNewSite ( ISiteSettings newSite ) : Task
CreateNewSite ( bool isServerAdminSite ) : Task
CreateRequiredRolesAndAdminUser ( SiteSettings site ) : Task
CreateRequiredRolesAndAdminUser ( SiteSettings site, string adminEmail, string adminLoginName, string adminDisplayName, string adminPassword ) : Task
Delete ( ISiteSettings site ) : Task
DeleteHost ( System.Guid siteId, System.Guid hostId ) : Task
EnsureRequiredRoles ( ISiteSettings site ) : Task
ExistingSiteCount ( ) : Task
Fetch ( System.Guid siteId ) : Task
Fetch ( string hostname ) : Task
FolderNameIsAvailable ( System.Guid requestingSiteId, string requestedFolderName ) : Task

returns true if the folder is not in use or is in use only on the passed in ISiteSettings

GetCurrentSiteSettings ( ) : Task
GetPageOtherSites ( System.Guid currentSiteId, int pageNumber, int pageSize ) : Task>
GetRoleCount ( System.Guid siteId ) : Task
GetSiteForDataOperations ( System.Guid siteId ) : Task
GetSiteForEdit ( System.Guid siteId ) : Task
GetSiteHost ( string hostName ) : Task
GetSiteHosts ( System.Guid siteId ) : Task>
GetUserCount ( Guid siteId ) : Task
HostNameIsAvailable ( Guid requestingSiteId, string requestedHostName ) : Task
SiteManager ( SiteContext currentSite, ISiteCommands siteCommands, ISiteQueries siteQueries, IUserCommands userCommands, IUserQueries userQueries, SiteDataProtector dataProtector, IHttpContextAccessor contextAccessor, ILogger logger, IOptions multiTenantOptionsAccessor, IOptions setupOptionsAccessor, CacheHelper cacheHelper ) : cloudscribe.Core.Models
Update ( ISiteSettings site ) : Task

Описание методов

AddHost() публичный Метод

public AddHost ( System.Guid siteId, string hostName ) : Task
siteId System.Guid
hostName string
Результат Task

AliasIdIsAvailable() публичный Метод

public AliasIdIsAvailable ( System.Guid requestingSiteId, string requestedAliasId ) : Task
requestingSiteId System.Guid
requestedAliasId string
Результат Task

CountOtherSites() публичный Метод

public CountOtherSites ( System.Guid currentSiteId ) : Task
currentSiteId System.Guid
Результат Task

CreateAdminUser() публичный Метод

public CreateAdminUser ( ISiteSettings site ) : Task
site ISiteSettings
Результат Task

CreateNewSite() публичный Метод

public CreateNewSite ( ISiteSettings newSite ) : Task
newSite ISiteSettings
Результат Task

CreateNewSite() публичный Метод

public CreateNewSite ( bool isServerAdminSite ) : Task
isServerAdminSite bool
Результат Task

CreateRequiredRolesAndAdminUser() публичный Метод

public CreateRequiredRolesAndAdminUser ( SiteSettings site ) : Task
site cloudscribe.Core.Models.SiteSettings
Результат Task

CreateRequiredRolesAndAdminUser() публичный Метод

public CreateRequiredRolesAndAdminUser ( SiteSettings site, string adminEmail, string adminLoginName, string adminDisplayName, string adminPassword ) : Task
site cloudscribe.Core.Models.SiteSettings
adminEmail string
adminLoginName string
adminDisplayName string
adminPassword string
Результат Task

Delete() публичный Метод

public Delete ( ISiteSettings site ) : Task
site ISiteSettings
Результат Task

DeleteHost() публичный Метод

public DeleteHost ( System.Guid siteId, System.Guid hostId ) : Task
siteId System.Guid
hostId System.Guid
Результат Task

EnsureRequiredRoles() публичный Метод

public EnsureRequiredRoles ( ISiteSettings site ) : Task
site ISiteSettings
Результат Task

ExistingSiteCount() публичный Метод

public ExistingSiteCount ( ) : Task
Результат Task

Fetch() публичный Метод

public Fetch ( System.Guid siteId ) : Task
siteId System.Guid
Результат Task

Fetch() публичный Метод

public Fetch ( string hostname ) : Task
hostname string
Результат Task

FolderNameIsAvailable() публичный Метод

returns true if the folder is not in use or is in use only on the passed in ISiteSettings
public FolderNameIsAvailable ( System.Guid requestingSiteId, string requestedFolderName ) : Task
requestingSiteId System.Guid
requestedFolderName string
Результат Task

GetCurrentSiteSettings() публичный Метод

public GetCurrentSiteSettings ( ) : Task
Результат Task

GetPageOtherSites() публичный Метод

public GetPageOtherSites ( System.Guid currentSiteId, int pageNumber, int pageSize ) : Task>
currentSiteId System.Guid
pageNumber int
pageSize int
Результат Task>

GetRoleCount() публичный Метод

public GetRoleCount ( System.Guid siteId ) : Task
siteId System.Guid
Результат Task

GetSiteForDataOperations() публичный Метод

public GetSiteForDataOperations ( System.Guid siteId ) : Task
siteId System.Guid
Результат Task

GetSiteForEdit() публичный Метод

public GetSiteForEdit ( System.Guid siteId ) : Task
siteId System.Guid
Результат Task

GetSiteHost() публичный Метод

public GetSiteHost ( string hostName ) : Task
hostName string
Результат Task

GetSiteHosts() публичный Метод

public GetSiteHosts ( System.Guid siteId ) : Task>
siteId System.Guid
Результат Task>

GetUserCount() публичный Метод

public GetUserCount ( Guid siteId ) : Task
siteId Guid
Результат Task

HostNameIsAvailable() публичный Метод

public HostNameIsAvailable ( Guid requestingSiteId, string requestedHostName ) : Task
requestingSiteId Guid
requestedHostName string
Результат Task

SiteManager() публичный Метод

public SiteManager ( SiteContext currentSite, ISiteCommands siteCommands, ISiteQueries siteQueries, IUserCommands userCommands, IUserQueries userQueries, SiteDataProtector dataProtector, IHttpContextAccessor contextAccessor, ILogger logger, IOptions multiTenantOptionsAccessor, IOptions setupOptionsAccessor, CacheHelper cacheHelper ) : cloudscribe.Core.Models
currentSite SiteContext
siteCommands ISiteCommands
siteQueries ISiteQueries
userCommands IUserCommands
userQueries IUserQueries
dataProtector SiteDataProtector
contextAccessor IHttpContextAccessor
logger ILogger
multiTenantOptionsAccessor IOptions
setupOptionsAccessor IOptions
cacheHelper CacheHelper
Результат cloudscribe.Core.Models

Update() публичный Метод

public Update ( ISiteSettings site ) : Task
site ISiteSettings
Результат Task