Click or drag to resize

ExtensionMethods Class

Extension methods for the core API functions
Inheritance Hierarchy
SystemObject
  SanteDB.CoreExtensionMethods

Namespace: SanteDB.Core
Assembly: SanteDB.Core.Api (in SanteDB.Core.Api.dll) Version: 3.0.2081-alpha+b4ae72647f2cc271f89142f76fff26ad69e00f5a
Syntax
public static class ExtensionMethods

The ExtensionMethods type exposes the following members.

Methods
 NameDescription
Public Extension MethodAddManagedReferenceLinkT Add a managed reference link between sourceObject and targetObject
Public Extension MethodAppliesTo Returns true if the job schedule applies at refDate given the lastRun
Public Extension MethodApplyPrivacyPoliciesTReturn Apply all privacy policies
Public Extension MethodClosestDay Find the closest day dayOfWeek from me
Public Extension MethodCreateInjected Create injected class
Public Extension MethodEnsureWeekday(DateTime) Ensure that the date appears on a weekday
Public Extension MethodEnsureWeekday(DateTimeOffset) Ensure that the date appears on a weekday
Public Extension MethodFilterManagedReferenceLinks(IHasRelationships) Get managed reference links
Public Extension MethodFilterManagedReferenceLinksT(IEnumerableITargetedAssociation) Get managed reference links wrapper for [!:IDataManagedLinkProvider<T>.FilterManagedReferenceLinks(IEnumerable<ITargetedAssociation>)]
Public Extension MethodFormatString Get a string formatted to the message with the specified input object
Public Extension MethodGetApplicationIdentity Get the application identity from the authentication context
Public Extension MethodGetApplicationProviderService Get application provider service
Public Extension MethodGetAsPemString Get serialized public certificate in base64 format
Public Extension MethodGetAssigningAuthorityService Gets the assigning authority repository service.
Public Extension MethodGetAuditService Get the audit service.
Public Extension MethodGetBusinessRulesServiceT Gets the business rules service for a specific information model.
Public Extension MethodGetByMnemonic Get the data template definition via mnemonic
Public Extension MethodGetConceptService Get the concept service.
Public Extension MethodGetDeviceIdentity Get the device identity from the authentication context
Public Extension MethodGetNotificationService Gets the INotificationService instance from context.
Public methodStatic memberGetUserId(IIdentity) Gets the user identifier for a given identity.
Public methodStatic memberGetUserIdT(IIdentity) Gets the user identifier for a given identity.
Public Extension MethodGetUserIdentity Get the user identity
Public Extension MethodGreaterOfT(T, T) Returns the greater of two values (helper method)
Public Extension MethodGreaterOfT(NullableT, NullableT) Returns the greater of two values (helper method)
Public Extension MethodIsCompatible Returns true if the major revisions are equal and minor revisions are greater
Public Extension MethodIsElevatedPrincipal True if elevated principal
Public Extension MethodIsMonoRuntime Determine if this is running under mono
Public Extension MethodIsNonInteractivePrincipal True if the principal is not an interactive (user) principal
Public Extension MethodIsoWeek(DateTime) Week number
Public Extension MethodIsoWeek(DateTimeOffset) Week number
Public Extension MethodIsRunning Determine if the IJobState is running
Public Extension MethodLesserOfT(T, T) Returns the lesser of two values (helper method)
Public Extension MethodLesserOfT(NullableT, NullableT) Returns the lesser of two values (helper method)
Public Extension MethodPrepareForCdssAnalysisTData Prepare for CDSS analysis
Public Extension MethodPrepareForCdssExecutionTData Prepare the target for the cdss execution
Public Extension MethodResolveGoldenRecord Resolve the managed target wrapper for ResolveManagedRecord(T)
Public Extension MethodResolveManagedRecord(IdentifiedData) Resolve the managed target wrapper for ResolveManagedRecord(T)
Public Extension MethodResolveManagedRecordT(T) Resolve the managed target wrapper for ResolveManagedRecord(T)
Public Extension MethodResolveOwnedRecord(IdentifiedData, IPrincipal) Non generic method of ResolveOwnedRecordT(T, IPrincipal)
Public Extension MethodResolveOwnedRecordT(T, IPrincipal) Resolve the managed target wrapper for ResolveOwnedRecord(T, IPrincipal)
Public Extension MethodResolveReference Resolve the reference
Public Extension MethodSetTimeout Set timeout on me to millisecondTimeout
Public Extension MethodToPolicy Convert a CDR policy registration to an operation policy definition
Public Extension MethodToPolicyInstance Convert to policy instance
Public Extension MethodToProtocol Convert an ICdssProtocol to a Protocol
Public Extension MethodTryDequeue Tries to dequeue a message from the dispatcher queue. Returns true if successful, false otherwise.
Public Extension MethodTryGetSignatureSettings Try to get signature settings
Public Extension MethodTryResolveReference Try to resolve a reference
Public Extension MethodValidateCodeIsSigned Validate that the code is signed
Top
See Also