Show / Hide Table of Contents

Class WebhookService

Inheritance
object
ServiceBase
WebhookService
Implements
IWebhookService
ICrudService<IWebhook, TenantServiceContext, Query>
ICreateService<IWebhook, TenantServiceContext, Query>
IReadService<IWebhook, TenantServiceContext, Query>
IAttributeService<TenantServiceContext>
Inherited Members
ServiceBase.AddQueryValue(string, string, object)
ServiceBase.AddQueryValue(string, string, DateTime)
ServiceBase.HttpClient
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: PayrollEngine.Client.Service.Api
Assembly: PayrollEngine.Client.Core.dll
Syntax
public class WebhookService : ServiceBase, IWebhookService, ICrudService<IWebhook, TenantServiceContext, Query>, ICreateService<IWebhook, TenantServiceContext, Query>, IReadService<IWebhook, TenantServiceContext, Query>, IAttributeService<TenantServiceContext>

Constructors

WebhookService(PayrollHttpClient)

Declaration
public WebhookService(PayrollHttpClient httpClient)
Parameters
Type Name Description
PayrollHttpClient httpClient

Methods

CreateAsync<T>(TenantServiceContext, T)

Declaration
public virtual Task<T> CreateAsync<T>(TenantServiceContext context, T webhook) where T : class, IWebhook
Parameters
Type Name Description
TenantServiceContext context
T webhook
Returns
Type Description
Task<T>
Type Parameters
Name Description
T

DeleteAsync(TenantServiceContext, int)

Declaration
public virtual Task DeleteAsync(TenantServiceContext context, int webhookId)
Parameters
Type Name Description
TenantServiceContext context
int webhookId
Returns
Type Description
Task

DeleteAttributeAsync(TenantServiceContext, int, string)

Declaration
public virtual Task DeleteAttributeAsync(TenantServiceContext context, int webhookId, string attributeName)
Parameters
Type Name Description
TenantServiceContext context
int webhookId
string attributeName
Returns
Type Description
Task

GetAsync<T>(TenantServiceContext, int)

Declaration
public virtual Task<T> GetAsync<T>(TenantServiceContext context, int webhookId) where T : class, IWebhook
Parameters
Type Name Description
TenantServiceContext context
int webhookId
Returns
Type Description
Task<T>
Type Parameters
Name Description
T

GetAsync<T>(TenantServiceContext, string)

Declaration
public virtual Task<T> GetAsync<T>(TenantServiceContext context, string name) where T : class, IWebhook
Parameters
Type Name Description
TenantServiceContext context
string name
Returns
Type Description
Task<T>
Type Parameters
Name Description
T

GetAttributeAsync(TenantServiceContext, int, string)

Declaration
public virtual Task<string> GetAttributeAsync(TenantServiceContext context, int webhookId, string attributeName)
Parameters
Type Name Description
TenantServiceContext context
int webhookId
string attributeName
Returns
Type Description
Task<string>

QueryAsync<T>(TenantServiceContext, Query)

Declaration
public virtual Task<List<T>> QueryAsync<T>(TenantServiceContext context, Query query = null) where T : class, IWebhook
Parameters
Type Name Description
TenantServiceContext context
Query query
Returns
Type Description
Task<List<T>>
Type Parameters
Name Description
T

QueryCountAsync(TenantServiceContext, Query)

Declaration
public virtual Task<long> QueryCountAsync(TenantServiceContext context, Query query = null)
Parameters
Type Name Description
TenantServiceContext context
Query query
Returns
Type Description
Task<long>

QueryResultAsync<T>(TenantServiceContext, Query)

Declaration
public virtual Task<QueryResult<T>> QueryResultAsync<T>(TenantServiceContext context, Query query = null) where T : class, IWebhook
Parameters
Type Name Description
TenantServiceContext context
Query query
Returns
Type Description
Task<QueryResult<T>>
Type Parameters
Name Description
T

SetAttributeAsync(TenantServiceContext, int, string, string)

Declaration
public virtual Task SetAttributeAsync(TenantServiceContext context, int webhookId, string attributeName, string attributeValue)
Parameters
Type Name Description
TenantServiceContext context
int webhookId
string attributeName
string attributeValue
Returns
Type Description
Task

UpdateAsync<T>(TenantServiceContext, T)

Declaration
public virtual Task UpdateAsync<T>(TenantServiceContext context, T webhook) where T : class, IWebhook
Parameters
Type Name Description
TenantServiceContext context
T webhook
Returns
Type Description
Task
Type Parameters
Name Description
T

Implements

IWebhookService
ICrudService<TModel, TContext, TQuery>
ICreateService<TModel, TContext, TQuery>
IReadService<TModel, TContext, TQuery>
IAttributeService<TContext>

Extension Methods

ConsoleExtensions.WriteProperties(object, bool)
ValueTypeExtensions.GetValueType(object)
ObjectInfo.GetPropertyValue(object, string)
ObjectInfo.GetPropertyValue<T>(object, string, T)
ObjectInfo.ResolvePropertyValue(object, string)
ObjectInfo.SetPropertyValue(object, string, object)
☀
☾
Back to top Generated by DocFX