Exemplo n.º 1
0
 public static IActionBuilder WithLogin(this IActionBuilder builder, Action <IActionBuilder> configure)
 {
     return(builder.ScopeWith <IAuthenticate, IMissing>(configure));
 }
Exemplo n.º 2
0
        public static IActionBuilder WithBusyIndication(this IActionBuilder builder, Action <IActionBuilder> configure, string message)
        {
            Guid requestId = Guid.NewGuid();

            return(builder.ScopeWith <IShowBusyIndication, IHideBusyIndication>(configure, new { requestId, message }, new { requestId }));
        }
 public static IActionBuilder ScopeWithITestResult(this IActionBuilder builder, Action <IActionBuilder> scope, string enter, string exit)
 {
     return(builder.ScopeWith <ITestResult, ITestResult>(scope, new { input = enter }, new { input = exit }));
 }