Show / Hide Table of Contents

Class PollPublicAppService

Inheritance
object
ApplicationService
PublicAppService
PollPublicAppService
Implements
IAvoidDuplicateCrossCuttingConcerns
IValidationEnabled
IUnitOfWorkEnabled
IAuditingEnabled
IGlobalFeatureCheckingEnabled
ITransientDependency
IPollPublicAppService
IApplicationService
IRemoteService
Inherited Members
ApplicationService.CheckPolicyAsync(string)
ApplicationService.CreateLocalizer()
ApplicationService.LazyServiceProvider
ApplicationService.ServiceProvider
ApplicationService.CommonPostfixes
ApplicationService.AppliedCrossCuttingConcerns
ApplicationService.UnitOfWorkManager
ApplicationService.AsyncExecuter
ApplicationService.ObjectMapperContext
ApplicationService.ObjectMapper
ApplicationService.GuidGenerator
ApplicationService.LoggerFactory
ApplicationService.CurrentTenant
ApplicationService.DataFilter
ApplicationService.CurrentUser
ApplicationService.SettingProvider
ApplicationService.Clock
ApplicationService.AuthorizationService
ApplicationService.FeatureChecker
ApplicationService.StringLocalizerFactory
ApplicationService.L
ApplicationService.LocalizationResource
ApplicationService.CurrentUnitOfWork
ApplicationService.Logger
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Volo.CmsKit.Public.Polls
Assembly: Volo.CmsKit.Pro.Public.Application.dll
Syntax
[RequiresFeature(new string[] { "CmsKitPro.PollEnable" })]
[RequiresGlobalFeature("CmsKitPro.Polls")]
public class PollPublicAppService : PublicAppService, IAvoidDuplicateCrossCuttingConcerns, IValidationEnabled, IUnitOfWorkEnabled, IAuditingEnabled, IGlobalFeatureCheckingEnabled, ITransientDependency, IPollPublicAppService, IApplicationService, IRemoteService

Constructors

PollPublicAppService(IPollRepository, IPollUserVoteRepository, PollManager, IOptions<CmsKitPollingOptions>)

Declaration
public PollPublicAppService(IPollRepository pollRepository, IPollUserVoteRepository pollUserVoteRepository, PollManager pollManager, IOptions<CmsKitPollingOptions> cmsKitPollingOptions)
Parameters
Type Name Description
IPollRepository pollRepository
IPollUserVoteRepository pollUserVoteRepository
PollManager pollManager
IOptions<CmsKitPollingOptions> cmsKitPollingOptions

Properties

PollManager

Declaration
protected PollManager PollManager { get; }
Property Value
Type Description
PollManager

PollRepository

Declaration
protected IPollRepository PollRepository { get; }
Property Value
Type Description
IPollRepository

PollUserVoteRepository

Declaration
protected IPollUserVoteRepository PollUserVoteRepository { get; }
Property Value
Type Description
IPollUserVoteRepository

Methods

FindByAvailableWidgetAsync(string)

Declaration
public virtual Task<PollWithDetailsDto> FindByAvailableWidgetAsync(string widgetName)
Parameters
Type Name Description
string widgetName
Returns
Type Description
Task<PollWithDetailsDto>

FindByCodeAsync(string)

Declaration
public virtual Task<PollWithDetailsDto> FindByCodeAsync(string code)
Parameters
Type Name Description
string code
Returns
Type Description
Task<PollWithDetailsDto>

GetResultAsync(Guid)

Declaration
public virtual Task<GetResultDto> GetResultAsync(Guid id)
Parameters
Type Name Description
Guid id
Returns
Type Description
Task<GetResultDto>

IsWidgetNameAvailableAsync(string)

Declaration
public Task<bool> IsWidgetNameAvailableAsync(string widgetName)
Parameters
Type Name Description
string widgetName
Returns
Type Description
Task<bool>

SubmitVoteAsync(Guid, SubmitPollInput)

Declaration
[Authorize]
public virtual Task SubmitVoteAsync(Guid id, SubmitPollInput submitPollInput)
Parameters
Type Name Description
Guid id
SubmitPollInput submitPollInput
Returns
Type Description
Task

Implements

IAvoidDuplicateCrossCuttingConcerns
IValidationEnabled
IUnitOfWorkEnabled
IAuditingEnabled
IGlobalFeatureCheckingEnabled
ITransientDependency
IPollPublicAppService
IApplicationService
IRemoteService

Extension Methods

AbpObjectExtensions.As<T>(object)
AbpObjectExtensions.To<T>(object)
LockExtensions.Locking(object, Action)
LockExtensions.Locking<TResult>(object, Func<TResult>)
AbpObjectExtensions.If<T>(T, bool, Action<T>)
AbpObjectExtensions.If<T>(T, bool, Func<T, T>)
AbpObjectExtensions.IsIn<T>(T, IEnumerable<T>)
AbpObjectExtensions.IsIn<T>(T, params T[])
AbpQueryableExtensions.OrderByIf<T, TQueryable>(TQueryable, bool, string)
AbpQueryableExtensions.PageBy<T, TQueryable>(TQueryable, int, int)
AbpQueryableExtensions.WhereIf<T, TQueryable>(TQueryable, bool, Expression<Func<T, bool>>)
AbpQueryableExtensions.WhereIf<T, TQueryable>(TQueryable, bool, Expression<Func<T, int, bool>>)
AbpOpenIddictQueryableExtensions.SkipIf<T, TQueryable>(TQueryable, bool, int?)
AbpOpenIddictQueryableExtensions.TakeIf<T, TQueryable>(TQueryable, bool, int?)
LockExtensions.Locking<T>(T, Action<T>)
LockExtensions.Locking<T, TResult>(T, Func<T, TResult>)
In this article
Back to top Powered by ABP.IO Platform