Class GenerateProxyAttribute
Marks an interface to have a proxy generated for
Inherited Members
Namespace: VoltRpc.Proxy
Assembly: VoltRpc.dll
Syntax
[AttributeUsage(AttributeTargets.Interface)]
public sealed class GenerateProxyAttribute : Attribute
Constructors
| Edit this page View SourceGenerateProxyAttribute()
Creates a new GenerateProxyAttribute instance
Declaration
public GenerateProxyAttribute()
Properties
| Edit this page View SourceForcePublic
Forces the generated proxy to be public
By default, the generated proxy visibility will be the same as the interfaces
Declaration
public bool ForcePublic { get; set; }
Property Value
Type | Description |
---|---|
bool |
GeneratedName
What name to use for the generated proxy.
By default, the generated proxy name will be {Interface Name}_GeneratedProxy.
Declaration
public string? GeneratedName { get; set; }
Property Value
Type | Description |
---|---|
string |
GeneratedNamespace
What namespace to use for the generated proxy.
By default, the generated proxy namespace will be VoltRpc.Proxy.Generated.
Declaration
public string? GeneratedNamespace { get; set; }
Property Value
Type | Description |
---|---|
string |