Click or drag to resize

IPubSubManagerServiceRegisterSubscriptionTModel Method (String, String, PubSubEventType, ExpressionFuncTModel, Boolean, Guid, String, NullableDateTimeOffset, NullableDateTimeOffset)

Register a new subscription for the specified type

Namespace:  SanteDB.Core.PubSub
Assembly:  SanteDB.Core.Api (in SanteDB.Core.Api.dll) Version: 3.0.481-alpha
Syntax
PubSubSubscriptionDefinition RegisterSubscription<TModel>(
	string name,
	string description,
	PubSubEventType events,
	Expression<Func<TModel, bool>> filter,
	Guid channelId,
	string supportAddress = null,
	DateTimeOffset? notBefore = null,
	DateTimeOffset? notAfter = null
)

Parameters

name
Type: SystemString

[Missing <param name="name"/> documentation for "M:SanteDB.Core.PubSub.IPubSubManagerService.RegisterSubscription``1(System.String,System.String,SanteDB.Core.PubSub.PubSubEventType,System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}},System.Guid,System.String,System.Nullable{System.DateTimeOffset},System.Nullable{System.DateTimeOffset})"]

description
Type: SystemString

[Missing <param name="description"/> documentation for "M:SanteDB.Core.PubSub.IPubSubManagerService.RegisterSubscription``1(System.String,System.String,SanteDB.Core.PubSub.PubSubEventType,System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}},System.Guid,System.String,System.Nullable{System.DateTimeOffset},System.Nullable{System.DateTimeOffset})"]

events
Type: SanteDB.Core.PubSubPubSubEventType

[Missing <param name="events"/> documentation for "M:SanteDB.Core.PubSub.IPubSubManagerService.RegisterSubscription``1(System.String,System.String,SanteDB.Core.PubSub.PubSubEventType,System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}},System.Guid,System.String,System.Nullable{System.DateTimeOffset},System.Nullable{System.DateTimeOffset})"]

filter
Type: System.Linq.ExpressionsExpressionFuncTModel, Boolean

[Missing <param name="filter"/> documentation for "M:SanteDB.Core.PubSub.IPubSubManagerService.RegisterSubscription``1(System.String,System.String,SanteDB.Core.PubSub.PubSubEventType,System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}},System.Guid,System.String,System.Nullable{System.DateTimeOffset},System.Nullable{System.DateTimeOffset})"]

channelId
Type: SystemGuid

[Missing <param name="channelId"/> documentation for "M:SanteDB.Core.PubSub.IPubSubManagerService.RegisterSubscription``1(System.String,System.String,SanteDB.Core.PubSub.PubSubEventType,System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}},System.Guid,System.String,System.Nullable{System.DateTimeOffset},System.Nullable{System.DateTimeOffset})"]

supportAddress (Optional)
Type: SystemString

[Missing <param name="supportAddress"/> documentation for "M:SanteDB.Core.PubSub.IPubSubManagerService.RegisterSubscription``1(System.String,System.String,SanteDB.Core.PubSub.PubSubEventType,System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}},System.Guid,System.String,System.Nullable{System.DateTimeOffset},System.Nullable{System.DateTimeOffset})"]

notBefore (Optional)
Type: SystemNullableDateTimeOffset

[Missing <param name="notBefore"/> documentation for "M:SanteDB.Core.PubSub.IPubSubManagerService.RegisterSubscription``1(System.String,System.String,SanteDB.Core.PubSub.PubSubEventType,System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}},System.Guid,System.String,System.Nullable{System.DateTimeOffset},System.Nullable{System.DateTimeOffset})"]

notAfter (Optional)
Type: SystemNullableDateTimeOffset

[Missing <param name="notAfter"/> documentation for "M:SanteDB.Core.PubSub.IPubSubManagerService.RegisterSubscription``1(System.String,System.String,SanteDB.Core.PubSub.PubSubEventType,System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}},System.Guid,System.String,System.Nullable{System.DateTimeOffset},System.Nullable{System.DateTimeOffset})"]

Type Parameters

TModel

[Missing <typeparam name="TModel"/> documentation for "M:SanteDB.Core.PubSub.IPubSubManagerService.RegisterSubscription``1(System.String,System.String,SanteDB.Core.PubSub.PubSubEventType,System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}},System.Guid,System.String,System.Nullable{System.DateTimeOffset},System.Nullable{System.DateTimeOffset})"]

Return Value

Type: PubSubSubscriptionDefinition

[Missing <returns> documentation for "M:SanteDB.Core.PubSub.IPubSubManagerService.RegisterSubscription``1(System.String,System.String,SanteDB.Core.PubSub.PubSubEventType,System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}},System.Guid,System.String,System.Nullable{System.DateTimeOffset},System.Nullable{System.DateTimeOffset})"]

See Also