ServiceRpcDescriptor.WithJoinableTaskFactory(JoinableTaskFactory) Metodo

Definizione

Restituisce un'istanza di ServiceRpcDescriptor simile a questa, ma con la JoinableTaskFactory proprietà impostata sul valore specificato.

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

Parametri

joinableTaskFactory
JoinableTaskFactory

Valore della proprietà modificata.

Restituisce

Clone di questa istanza, con la proprietà modificata. In alternativa, questa stessa istanza se la proprietà corrisponde già.

Si applica a