public static ReplicationEndpoint CreateEndpoint <T>(this T self, string endpointId, ImmutableHashSet <string> logNames, ImmutableHashSet <ReplicationConnection> connections, bool activate = true) where T : MultiNodeSpec, IMultiNodeReplicationEndpoint { var endpoint = new ReplicationEndpoint(self.Sys, endpointId, logNames, self.LogProps, connections); if (activate) { endpoint.Activate(); } return(endpoint); }
public ReplicationEndpoint Endpoint( ImmutableHashSet <string> logNames, ImmutableHashSet <ReplicationConnection> connections, IEndpointFilter endpointFilters = null, string applicationName = null, ApplicationVersion?applicationVersion = null, bool activate = true) { endpointFilters = endpointFilters ?? NoFilters.Instance; applicationName = applicationName ?? ReplicationEndpoint.DefaultApplicationName; var appVer = applicationVersion ?? ReplicationEndpoint.DefaultApplicationVersion; var endpoint = new ReplicationEndpoint(System, Id, logNames, LogFactory, connections, endpointFilters, applicationName, appVer); if (activate) { endpoint.Activate(); } return(endpoint); }