Subject.Synchronize<TSource, TResult> , méthode (ISubject<TSource, TResult>, IScheduler)
Synchronise les messages sur l’objet et avertit les observateurs sur le planificateur spécifié.
Namespace:System.Reactive.Subjects
Assemblée: System.Reactive (en System.Reactive.dll)
Syntaxe
'Declaration
Public Shared Function Synchronize(Of TSource, TResult) ( _
subject As ISubject(Of TSource, TResult), _
scheduler As IScheduler _
) As ISubject(Of TSource, TResult)
'Usage
Dim subject As ISubject(Of TSource, TResult)
Dim scheduler As IScheduler
Dim returnValue As ISubject(Of TSource, TResult)
returnValue = Subject.Synchronize(subject, _
scheduler)
public static ISubject<TSource, TResult> Synchronize<TSource, TResult>(
ISubject<TSource, TResult> subject,
IScheduler scheduler
)
public:
generic<typename TSource, typename TResult>
static ISubject<TSource, TResult>^ Synchronize(
ISubject<TSource, TResult>^ subject,
IScheduler^ scheduler
)
static member Synchronize :
subject:ISubject<'TSource, 'TResult> *
scheduler:IScheduler -> ISubject<'TSource, 'TResult>
JScript does not support generic types and methods.
Paramètres de type
- TSource
Source de type.
- TResult
Type de résultat.
Paramètres
- subject
Type : System.Reactive.Subjects.ISubject<TSource, TResult>
Objet à synchroniser.
- scheduler
Type : System.Reactive.Concurrency.IScheduler
Planificateur pour notifier les observateurs.
Valeur de retour
Type : System.Reactive.Subjects.ISubject<TSource, TResult>
Objet dont les messages sont synchronisés et dont les observateurs sont avertis sur le planificateur donné.