ServiceAttribute

Overview

This attribute is used to mark types that implement a service available via remote access. The ServiceManager will look for this attribute when searching for classes when a request for the service comes in.

All three properties are mandatory.

Location

 

constructor

Creates a new instance

 

constructor

 

ServiceAttribute()

 

init()

 

Sub New()

ActivatorClass

The class to be used as activator for this type.

 

property ActivatorClass: Type read write;

 

Type ActivatorClass { get; set; }

 

var ActivatorClass: Type { get{} set{} }

 

Property ActivatorClass() As Type

InvokerClass

The class to be used as invoker for this type. Since invoker and implementation are tightly coupled, this will usually point to the auto-generated Invoker class.

 

property InvokerClass: Type read write;

 

Type InvokerClass { get; set; }

 

var InvokerClass: Type { get{} set{} }

 

Property InvokerClass() As Type

IsCodeFirstService

Specifies Code-First or RODL-based service

 

property IsCodeFirstService: Boolean read write;

 

Boolean IsCodeFirstService { get; set; }

 

var IsCodeFirstService: Boolean { get{} set{} }

 

Property IsCodeFirstService() As Boolean

Name

Specifies the name (also known as Service Name or Interface Name) under which the service will be published. Can be ommited.

 

property Name: String read write;

 

String Name { get; set; }

 

var Name: String { get{} set{} }

 

Property Name() As String

ServiceId

 

property ServiceId: String read write;

 

String ServiceId { get; set; }

 

var ServiceId: String { get{} set{} }

 

Property ServiceId() As String

 

ActivatorClass

The class to be used as activator for this type.

 

property ActivatorClass: Type read write;

 

Type ActivatorClass { get; set; }

 

var ActivatorClass: Type { get{} set{} }

 

Property ActivatorClass() As Type

InvokerClass

The class to be used as invoker for this type. Since invoker and implementation are tightly coupled, this will usually point to the auto-generated Invoker class.

 

property InvokerClass: Type read write;

 

Type InvokerClass { get; set; }

 

var InvokerClass: Type { get{} set{} }

 

Property InvokerClass() As Type

IsCodeFirstService

Specifies Code-First or RODL-based service

 

property IsCodeFirstService: Boolean read write;

 

Boolean IsCodeFirstService { get; set; }

 

var IsCodeFirstService: Boolean { get{} set{} }

 

Property IsCodeFirstService() As Boolean

Name

Specifies the name (also known as Service Name or Interface Name) under which the service will be published. Can be ommited.

 

property Name: String read write;

 

String Name { get; set; }

 

var Name: String { get{} set{} }

 

Property Name() As String

ServiceId

 

property ServiceId: String read write;

 

String ServiceId { get; set; }

 

var ServiceId: String { get{} set{} }

 

Property ServiceId() As String

 

constructor

Creates a new instance

 

constructor

 

ServiceAttribute()

 

init()

 

Sub New()