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
ActorRemotingProviderAttribute
Derived
Attributes

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.

Properties

RemotingClientVersion

Gets or sets RemotingClientVersion to determine where V1 or V2 remoting Client is used.

RemotingListenerVersion

Gets or sets RemotingListenerVersion to determine where listener is in V1, V2 .

Methods

CreateServiceRemotingClientFactory(IServiceRemotingCallbackClient)

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

CreateServiceRemotingClientFactory(IServiceRemotingCallbackMessageHandler)

Creates a service remoting client factory that can be used by the Microsoft.ServiceFabric.Services.Remoting.V2.Client.ServiceProxyFactory to create a proxy for the remoted interface of the service.

CreateServiceRemotingListener(ActorService)

Creates a service remoting listener for remoting the actor interfaces.

CreateServiceRemotingListeners()

Creates a V2 service remoting listener for remoting the service interface.

Applies to