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
[<System.AttributeUsage(System.AttributeTargets.Assembly)>]
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:

  1. In the entry Assembly obtained by calling method GetEntryAssembly()
  2. In the Assembly that defines the remote interface for which listener or proxy is being created.

Constructors

Name Description
ActorRemotingProviderAttribute()

Initializes a new instance of the ActorRemotingProviderAttribute class.

Properties

Name Description
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

Name Description
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.

CreateServiceRemotingListeners()

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

Applies to