本文整理汇总了C#中ISecurityService类的典型用法代码示例。如果您正苦于以下问题:C# ISecurityService类的具体用法?C# ISecurityService怎么用?C# ISecurityService使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ISecurityService类属于命名空间,在下文中一共展示了ISecurityService类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: EventService
public EventService(ISecurityService securityService, IUnitOfWork unitOfWork, ICampaignService campaignService, IGroupService groupService)
{
_securityService = securityService;
_unitOfWork = unitOfWork;
_campaignService = campaignService;
_groupService = groupService;
}
开发者ID:JudasHerb,项目名称:MyCommunity,代码行数:7,代码来源:EventService.cs
示例2: RemoteCredentialsDecorator
public RemoteCredentialsDecorator(Uri brokerUri, ISecurityService securityService, IMainThread mainThread) {
_securityService = securityService;
_mainThread = mainThread;
_authority = brokerUri.ToCredentialAuthority();
_lock = new AsyncReaderWriterLock();
_credentialsAreValid = true;
}
开发者ID:Microsoft,项目名称:RTVS,代码行数:7,代码来源:RemoteCredentialsDecorator.cs
示例3: ThemeController
public ThemeController(Func<string, IThemeService> factory, ISettingsManager manager, ISecurityService securityService, IPermissionScopeService permissionScopeService,
string pathForMultipart, string pathForFiles, string defaultThemePath)
: base(securityService, permissionScopeService)
{
if (factory == null)
{
throw new ArgumentNullException("factory");
}
if (manager == null)
{
throw new ArgumentNullException("manager");
}
if (string.IsNullOrEmpty(pathForMultipart))
throw new ArgumentNullException("pathForMultipart");
if (string.IsNullOrEmpty(pathForFiles))
throw new ArgumentNullException("pathForFiles");
var chosenRepository = manager.GetValue(
"VirtoCommerce.Content.MainProperties.ThemesRepositoryType",
string.Empty);
_pathForMultipart = pathForMultipart;
_pathForFiles = pathForFiles;
_defaultThemePath = defaultThemePath;
var themeService = factory.Invoke(chosenRepository);
this._themeService = themeService;
}
开发者ID:VirtoCommerce,项目名称:vc-internal,代码行数:31,代码来源:ThemeController.cs
示例4: SetUp
public void SetUp()
{
_repository = Substitute.For<IPatientRepository>();
_securityService = Substitute.For<ISecurityService>();
_securityService.IsInRole("Admin").Returns(true);
_service = new PatientService(_repository, _securityService);
}
开发者ID:toddmeinershagen,项目名称:Demo.Mocks,代码行数:7,代码来源:PatientServiceTests.cs
示例5: EnsureCoreDataTask
public EnsureCoreDataTask(IFrameworkContext context, IHiveManager coreManager, IEnumerable<Lazy<Permission, PermissionMetadata>> permissions,
ISecurityService securityService)
: base(context, coreManager)
{
_permissions = permissions;
_securityService = securityService;
}
开发者ID:paulsuart,项目名称:rebelcmsxu5,代码行数:7,代码来源:EnsureCoreDataTask.cs
示例6: Render
/// <summary>
/// Renders an action projection to given html output.
/// </summary>
/// <param name="page">The page.</param>
/// <param name="securityService"></param>
/// <param name="html">The html helper.</param>
/// <returns><c>true</c> on success, otherwise <c>false</c>.</returns>
public override bool Render(IPage page, ISecurityService securityService, HtmlHelper html)
{
if (AccessRole != null && !securityService.IsAuthorized(AccessRole))
{
return false;
}
using (HtmlControlRenderer control = new HtmlControlRenderer(Tag))
{
OnPreRender(control, page, html);
using (HtmlTextWriter writer = new HtmlTextWriter(html.ViewContext.Writer))
{
control.RenderBeginTag(writer);
if (ChildProjections != null)
{
foreach (var htmlElementProjection in ChildProjections.OrderBy(f => f.Order))
{
htmlElementProjection.Render(page, securityService, html);
}
}
control.RenderEndTag(writer);
}
}
return true;
}
开发者ID:Steinerd,项目名称:BetterCMS,代码行数:36,代码来源:InheriteProjection.cs
示例7: SecurityController
public SecurityController(ISecurityService securityService)
{
if (securityService == null)
throw new ArgumentNullException("securityService");
_securityService = securityService;
}
开发者ID:codebangla,项目名称:accountgo,代码行数:7,代码来源:SecurityController.cs
示例8: ContentController
public ContentController(Func<string, IContentBlobStorageProvider> contentStorageProviderFactory, IBlobUrlResolver urlResolver, ISecurityService securityService, IPermissionScopeService permissionScopeService, IStoreService storeService)
: base(securityService, permissionScopeService)
{
_storeService = storeService;
_contentStorageProviderFactory = contentStorageProviderFactory;
_urlResolver = urlResolver;
}
开发者ID:sameerkattel,项目名称:vc-community,代码行数:7,代码来源:ContentController.cs
示例9: DefaultContentService
public DefaultContentService(ISecurityService securityService, IRepository repository, IUnitOfWork unitOfWork, IOptionService optionService)
{
this.unitOfWork = unitOfWork;
this.securityService = securityService;
this.repository = repository;
this.optionService = optionService;
}
开发者ID:navid60,项目名称:BetterCMS,代码行数:7,代码来源:DefaultContentService.cs
示例10: AddressBookContactsService
public AddressBookContactsService(
IAddressBookContactsDataService contactDataService,
ISecurityService securityService)
{
_contactDataService = contactDataService;
_securityService = securityService;
}
开发者ID:MrAntix,项目名称:Poci,代码行数:7,代码来源:AddressBookContactsService.cs
示例11: NotificationsController
public NotificationsController(IAppleNotificationService appleService, ISecurityService securityService, IGoogleGcmNotificationService googleGcmService, IWindowsPhoneNotificationService windowsPhoneService)
{
_AppleService = appleService;
_SecurityService = securityService;
_GoogleGcmService = googleGcmService;
_WindowsPhoneService = windowsPhoneService;
}
开发者ID:sudheerkadudhula,项目名称:PushSharp.Web,代码行数:7,代码来源:NotificationsController.cs
示例12: CommunityController
public CommunityController(IMessageService messageService,ISecurityService securityService, IEventService eventService)
: base(securityService)
{
_messageService = messageService;
_securityService = securityService;
_eventService = eventService;
}
开发者ID:JudasHerb,项目名称:MyCommunity,代码行数:7,代码来源:CommunityController.cs
示例13: Initialize
public static void Initialize(ILayoutService layoutService, ISecurityService securityService)
{
ServiceFactoryBase.SecurityService = SecurityService = securityService;
Layout = layoutService;
ContentService = new ContentService("Monitor");
DragDropService = new DragDropService();
}
开发者ID:xbadcode,项目名称:Rubezh,代码行数:7,代码来源:ServiceFactory.cs
示例14: CmsController
/// <summary>
/// Initializes a new instance of the <see cref="CmsController" /> class.
/// </summary>
/// <param name="pageAccessor">The page accessor.</param>
/// <param name="cmsConfiguration">The configuration loader.</param>
/// <param name="cacheService">The cache service.</param>
/// <param name="securityService">The security service.</param>
public CmsController(IPageAccessor pageAccessor, ICmsConfiguration cmsConfiguration, ICacheService cacheService, ISecurityService securityService)
{
this.securityService = securityService;
this.pageAccessor = pageAccessor;
this.cmsConfiguration = cmsConfiguration;
this.cacheService = cacheService;
}
开发者ID:pmaciulis,项目名称:BetterCMS,代码行数:14,代码来源:CmsController.cs
示例15: SecurityService
/// <summary>
/// Initializes a new instance of the <see cref="SecurityService"/> class.
/// </summary>
public SecurityService()
{
this.manager = Global.DependencyInjectionContainer.Resolve<SecurityManager>();
this.securityService = Global.DependencyInjectionContainer.Resolve<ISecurityService>();
this.manager.IsSecureConnection = this.Context.Request.IsSecureConnection;
this.cookiePath = this.manager.CookiePath;
}
开发者ID:cgavieta,项目名称:WORKPAC2016-poc,代码行数:10,代码来源:SecurityService.asmx.cs
示例16: DefaultPreviewService
public DefaultPreviewService(PageContentProjectionFactory pageContentProjectionFactory, IOptionService optionService, IRepository repository, ISecurityService securityService)
{
this.pageContentProjectionFactory = pageContentProjectionFactory;
this.repository = repository;
this.optionService = optionService;
this.securityService = securityService;
}
开发者ID:rajeshpillai,项目名称:BetterCMS,代码行数:7,代码来源:DefaultPreviewService.cs
示例17: MeetingFacadeService
public MeetingFacadeService(IMeetingService meetingService, IMeetingRepository meetingRepository, ISecurityService securityService)
{
this.meetingService = meetingService;
this.meetingRepository = meetingRepository;
this.securityService = securityService;
}
开发者ID:ehsmohammadi,项目名称:BTE.RMS,代码行数:7,代码来源:MeetingFacadeService.cs
示例18: AccountEntityOperationLogic
public AccountEntityOperationLogic(INotificationService notificationService, ITemplateService templateService, IEntityRepository repository, ISecurityService securityService)
{
_notificationService = notificationService;
_templateService = templateService;
_repository = repository;
_securityService = securityService;
}
开发者ID:kvuchkov,项目名称:nbulib,代码行数:7,代码来源:AccountEntityOperationLogic.cs
示例19: DefaultIndexerService
public DefaultIndexerService(ICmsConfiguration cmsConfiguration, IRepository repository, ISecurityService securityService, IAccessControlService accessControlService)
{
this.repository = repository;
this.cmsConfiguration = cmsConfiguration;
this.securityService = securityService;
this.accessControlService = accessControlService;
}
开发者ID:JMFURY,项目名称:BetterCMS,代码行数:7,代码来源:DefaultIndexerService.cs
示例20: CustomerDetailViewModel
public CustomerDetailViewModel(ISecurityService securityService, IViewModelsFactory<IPhoneNumberDialogViewModel> phoneVmFactory, IViewModelsFactory<IEmailDialogViewModel> emailVmFactory, IViewModelsFactory<ICreateUserDialogViewModel> wizardUserVmFactory, IViewModelsFactory<IAddressDialogViewModel> addressVmFactory, ICustomerEntityFactory entityFactory,
IAuthenticationContext authContext, CustomersDetailViewModel parentViewModel, Contact innerContact,
ICustomerRepository customerRepository, IRepositoryFactory<ISecurityRepository> securityRepositoryFactory,
IRepositoryFactory<ICountryRepository> countryRepositoryFactory, IRepositoryFactory<IOrderRepository> orderRepositoryFactory, ILoginViewModel loginViewModel)
{
_securityService = securityService;
_loginViewModel = loginViewModel;
_parentViewModel = parentViewModel;
_authContext = authContext;
_customerRepository = customerRepository;
_orderRepositoryFactory = orderRepositoryFactory;
_securityRepositoryFactory = securityRepositoryFactory;
_countryRepositoryFactory = countryRepositoryFactory;
_entityFactory = entityFactory;
_addressVmFactory = addressVmFactory;
_wizardUserVmFactory = wizardUserVmFactory;
_emailVmFactory = emailVmFactory;
_phoneVmFactory = phoneVmFactory;
_fileDialogService = new FileDialogService();
InnerItem = innerContact;
InnerItem.PropertyChanged += _innerContact_PropertyChanged;
CommandsInit();
RequestInit();
CollectionInit();
HasCurrentContactLoginAndSuspendAccessCheck();
}
开发者ID:karpinskiy,项目名称:vc-community,代码行数:30,代码来源:CustomerDetailViewModel.cs
注:本文中的ISecurityService类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论