ActorRemotingProviderAttribute Class

Definition

This is a base type for attribute that sets the default remoting provider to use for remoting the actor interfaces defined or used in the assembly.

[System.AttributeUsage(System.AttributeTargets.Assembly)]
public abstract class ActorRemotingProviderAttribute : Attribute
type ActorRemotingProviderAttribute = class
    inherit Attribute
Public MustInherit Class ActorRemotingProviderAttribute
Inherits Attribute
Inheritance
System.Attribute
ActorRemotingProviderAttribute
Derived
Attributes
System.AttributeUsageAttribute

Remarks

On service side, implementation of this attribute is looked up by ActorService to create default IServiceRemotingListener for it.

On client side, implementation of this attribute is looked up by ActorProxyFactory constructor to create a default IServiceRemotingClientFactory when it is not specified.

Note that on client side when actor proxy is created using the static ActorProxy class, it uses a default ActorProxyFactory once and hence the provider lookup happens only for the first time in an assembly, after which the same provider is used.

This attribute is looked up in the following order:

Constructors

ActorRemotingProviderAttribute()

Initializes a new instance of the ActorRemotingProviderAttribute class.

Methods

CreateServiceRemotingClientFactory(IServiceRemotingCallbackClient)

Creates a service remoting client factory to connected to the remoted actor interfaces.

CreateServiceRemotingListener(ActorService)

Creates a service remoting listener for remoting the actor interfaces.

Applies to