コード例 #1
0
 /// <summary>
 /// Applies given base url <paramref name="path"/> to <see cref="IServiceBeacon"/> configuration.
 /// </summary>
 public static IVostokHostingEnvironmentBuilder SetBaseUrlPath([NotNull] this IVostokHostingEnvironmentBuilder builder, [NotNull] string path) =>
 builder.SetupServiceBeacon(serviceBeaconSetup => serviceBeaconSetup.SetupReplicaInfo(replicaInfoSetup => replicaInfoSetup.SetUrlPath(path)));
コード例 #2
0
 /// <summary>
 /// Applies given url <paramref name="scheme"/> to <see cref="IServiceBeacon"/> configuration.
 /// </summary>
 public static IVostokHostingEnvironmentBuilder SetUrlScheme([NotNull] this IVostokHostingEnvironmentBuilder builder, [NotNull] string scheme) =>
 builder.SetupServiceBeacon(serviceBeaconSetup => serviceBeaconSetup.SetupReplicaInfo(replicaInfoSetup => replicaInfoSetup.SetScheme(scheme)));
コード例 #3
0
 /// <summary>
 /// Applies given <paramref name="port"/> to <see cref="IServiceBeacon"/> configuration.
 /// </summary>
 public static IVostokHostingEnvironmentBuilder SetPort([NotNull] this IVostokHostingEnvironmentBuilder builder, int port) =>
 builder.SetupServiceBeacon(serviceBeaconSetup => serviceBeaconSetup.SetupReplicaInfo(replicaInfoSetup => replicaInfoSetup.SetPort(port)));
コード例 #4
0
 /// <summary>
 /// Enables service beacon.
 /// </summary>
 public static IVostokHostingEnvironmentBuilder SetupServiceBeacon([NotNull] this IVostokHostingEnvironmentBuilder builder) =>
 builder.SetupServiceBeacon(_ => {});
コード例 #5
0
 /// <summary>
 /// Disables service beacon.
 /// </summary>
 public static IVostokHostingEnvironmentBuilder DisableServiceBeacon([NotNull] this IVostokHostingEnvironmentBuilder builder) =>
 builder.SetupServiceBeacon(serviceBeaconSetup => serviceBeaconSetup.Disable());
コード例 #6
0
 /// <summary>
 /// Applies given <paramref name="application"/> name to <see cref="IServiceBeacon"/> configuration. Note the this application might differ from app identity <see cref="IVostokApplicationIdentity.Application"/>.
 /// </summary>
 public static IVostokHostingEnvironmentBuilder SetBeaconApplication([NotNull] this IVostokHostingEnvironmentBuilder builder, [NotNull] string application) =>
 builder.SetupServiceBeacon(beacon => beacon.SetupReplicaInfo(replica => replica.SetApplication(application)));
コード例 #7
0
 /// <summary>
 /// Applies given <paramref name="environment"/> name to <see cref="IServiceBeacon"/> configuration. Note the this environment might differ from app identity <see cref="IVostokApplicationIdentity.Environment"/>.
 /// </summary>
 public static IVostokHostingEnvironmentBuilder SetBeaconEnvironment([NotNull] this IVostokHostingEnvironmentBuilder builder, [NotNull] string environment) =>
 builder.SetupServiceBeacon(beacon => beacon.SetupReplicaInfo(replica => replica.SetEnvironment(environment)));