Class RDWebService
- Namespace
- RDCore.Web.Services
- Assembly
- RDCore.Web.dll
A service that a class of the program declares with '@Service.
public sealed record RDWebService : IEquatable<RDWebService>
- Inheritance
-
RDWebService
- Implements
- Inherited Members
Constructors
RDWebService(string, RDWebServiceLifetime, string, bool)
A service that a class of the program declares with '@Service.
public RDWebService(string Name, RDWebServiceLifetime Lifetime, string ClassName, bool IsPredeclared)
Parameters
NamestringThe service's name: the type a parameter declares to be given it. The class is that type, or names it in an
Implementsstatement.LifetimeRDWebServiceLifetimeHow long its object lives.
ClassNamestringThe class that makes it.
IsPredeclaredboolWhether the class has a default instance (
VB_PredeclaredId = True): its object is the one its DefaultFactory function returns, run on the default instance. Otherwise its object is aNewone.
Properties
ClassName
The class that makes it.
public string ClassName { get; init; }
Property Value
IsPredeclared
Whether the class has a default instance (VB_PredeclaredId = True): its object is the one its DefaultFactory
function returns, run on the default instance. Otherwise its object is a New one.
public bool IsPredeclared { get; init; }
Property Value
Lifetime
How long its object lives.
public RDWebServiceLifetime Lifetime { get; init; }
Property Value
Name
The service's name: the type a parameter declares to be given it. The class is that type, or names it in an Implements statement.
public string Name { get; init; }