Ejemplo n.º 1
0
 public static IObservable <StreamResult <TOut> > Subscribe <TIn, TOut>(this IPayloadV2Client src,
                                                                        MethodInfo <TIn, TOut> method, byte requestId = 0)
     where TOut : ISizedSpanSerializable, new()
     where TIn : ISizedSpanSerializable, new()
 {
     return(src.Subscribe(method, SpanSerializableHelper.Deserialize <TOut>, requestId));
 }
Ejemplo n.º 2
0
 public static Task <TOut> Call <TIn, TOut>(this IPayloadV2Client src, MethodInfo <TIn, TOut> method, TIn args,
                                            CancellationToken cancel = default, int attempt = 3,
                                            Action <double> progress = null)
     where TIn : ISizedSpanSerializable, new()
     where TOut : ISizedSpanSerializable, new()
 {
     return(src.Call(method, args, SpanSerializableHelper.Serialize, SpanSerializableHelper.SerializeSize,
                     SpanSerializableHelper.Deserialize <TOut>, cancel, attempt, progress));
 }
 protected Pv2ClientInterfaceBase(IPayloadV2Client client, string ifcLogName)
 {
     Client      = client;
     _ifcLogName = ifcLogName;
 }
Ejemplo n.º 4
0
 public static async Task <(TIn, TOut)> CallWithArgs <TIn, TOut>(this IPayloadV2Client src,
                                                                 MethodInfo <TIn, TOut> method, TIn args,
                                                                 CancellationToken cancel = default, int attempt = 3,
                                                                 Action <double> progress = null)