ActorRemotingProviderAttribute Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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:
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(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
Azure SDK for .NET