ServiceRpcDescriptor 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.
A description of a service to help automate connecting to it.
public ref class ServiceRpcDescriptor abstract
public abstract class ServiceRpcDescriptor
type ServiceRpcDescriptor = class
Public MustInherit Class ServiceRpcDescriptor
- Inheritance
-
ServiceRpcDescriptor
- Derived
Constructors
ServiceRpcDescriptor(ServiceMoniker, Type) |
Initializes a new instance of the ServiceRpcDescriptor class. |
ServiceRpcDescriptor(ServiceRpcDescriptor) |
Initializes a new instance of the ServiceRpcDescriptor class and initializes all fields based on a template instance. |
Properties
ClientInterface |
Gets the interface type that the client's "callback" RPC target is expected to implement. |
JoinableTaskFactory |
Gets the JoinableTaskFactory that may be applied to the constructed RPC connection. |
Moniker |
Gets the moniker for the service. |
MultiplexingStream |
Gets the Nerdbank.Streams.MultiplexingStream that may be used by constructed clients or servers. |
Protocol |
Gets a non-localized name of the protocol supported by this instance. |
TraceSource |
Gets the TraceSource to be used on constructed clients or servers. |
Methods
Clone() |
Creates a copy of this instance with all the same properties. |
ConstructLocalProxy<T>(T) |
Gives the ServiceRpcDescriptor a chance to wrap a local target object so that interacting with it behaves similarly to if it were a remote target that was using RPC. |
ConstructRpc(Object, IDuplexPipe) |
Establishes an RPC connection to a given object over an IDuplexPipe, allowing the remote party to invoke methods locally on the given object. |
ConstructRpc<T>(IDuplexPipe) |
Creates an RPC client proxy over a given IDuplexPipe without providing a local RPC target for the remote party to invoke methods locally. |
ConstructRpc<T>(Object, IDuplexPipe) |
Creates an RPC client proxy over a given IDuplexPipe and provides a local RPC target for the remote party to invoke methods locally. |
ConstructRpcConnection(IDuplexPipe) |
Establishes an RPC connection over an IDuplexPipe. |
WithJoinableTaskFactory(JoinableTaskFactory) |
Returns an instance of ServiceRpcDescriptor that resembles this one, but with the JoinableTaskFactory property set to the specified value. |
WithMultiplexingStream(MultiplexingStream) |
Obsolete.
Returns an instance of ServiceRpcDescriptor that resembles this one,
but with the MultiplexingStream property set to the specified value and Nerdbank.Streams.MultiplexingStream.Options set to |
WithServiceMoniker(ServiceMoniker) |
Returns an instance of ServiceRpcDescriptor that resembles this one, but with the ServiceMoniker property set to the specified value. |
WithTraceSource(TraceSource) |
Returns an instance of ServiceRpcDescriptor that resembles this one, but with the TraceSource property set to the specified value. |