Exemple #1
0
 public static PublishSubscribeBuilder GrpcPublishSubscribe(this PublishSubscribeBuilder publishSubscribeBuilder,
                                                            IPEndPoint serverEndPoint = null,
                                                            IObservable <IEnumerable <DnsEndPoint> > seedsEndpointObservable = null)
 {
     serverEndPoint          = serverEndPoint ?? new IPEndPoint(IPAddress.Loopback, 35000);
     seedsEndpointObservable = seedsEndpointObservable ?? Observable.Return(new[] { new DnsEndPoint("localhost", 35000) });
     return(publishSubscribeBuilder.Factory(builder =>
                                            new PublishSubscribe(serverEndPoint, seedsEndpointObservable, builder.LoggerFactory, builder.Serializer)));
 }
Exemple #2
0
 public static PublishSubscribeBuilder ProtoActorPublishSubscribe(this PublishSubscribeBuilder publishSubscribeBuilder)
 {
     return(publishSubscribeBuilder.Factory(builder =>
                                            new PublishSubscribe(builder.ClusterName, builder.Serializer, builder.LoggerFactory)));
 }