Share via


ServiceRpcDescriptor.WithJoinableTaskFactory(JoinableTaskFactory) Method

Definition

Returns an instance of ServiceRpcDescriptor that resembles this one, but with the JoinableTaskFactory property set to the specified value.

public Microsoft.ServiceHub.Framework.ServiceRpcDescriptor WithJoinableTaskFactory (Microsoft.VisualStudio.Threading.JoinableTaskFactory? joinableTaskFactory);
member this.WithJoinableTaskFactory : Microsoft.VisualStudio.Threading.JoinableTaskFactory -> Microsoft.ServiceHub.Framework.ServiceRpcDescriptor
Public Function WithJoinableTaskFactory (joinableTaskFactory As JoinableTaskFactory) As ServiceRpcDescriptor

Parameters

joinableTaskFactory
JoinableTaskFactory

The value for the modified property..

Returns

A clone of this instance, with the property changed. Or this same instance if the property already matches.

Applies to