Пример #1
0
 public static ISetupActivity <HttpEndpoint> WithMethod(this ISetupActivity <HttpEndpoint> activity, string value) => activity.WithMethods(new[] { value });
Пример #2
0
 public static ISetupActivity <HttpEndpoint> WithMethod(this ISetupActivity <HttpEndpoint> activity, Func <string> value) => activity.WithMethods(() => new[] { value() });
Пример #3
0
 public static ISetupActivity <HttpEndpoint> WithMethod(this ISetupActivity <HttpEndpoint> activity, Func <ValueTask <string> > value) => activity.WithMethods(async() => new[] { await value() });
Пример #4
0
 public static ISetupActivity <HttpEndpoint> WithMethod(this ISetupActivity <HttpEndpoint> activity, Func <ActivityExecutionContext, string> value) => activity.WithMethods(context => new[] { value(context) });
Пример #5
0
 public static ISetupActivity <HttpEndpoint> WithMethod(this ISetupActivity <HttpEndpoint> activity, Func <ActivityExecutionContext, ValueTask <string> > value) => activity.WithMethods(async context => new[] { await value(context) });