예제 #1
0
        public static IServerHost SecureUpgrade(this IServerHost host, SecureUpgrade mode)
        {
            if (mode != Api.Infrastructure.SecureUpgrade.None)
            {
                host.Add(new SecureUpgradeConcernBuilder().Mode(mode));
            }

            return(host);
        }
예제 #2
0
 public static IServerHost Compression(this IServerHost host, CompressionConcernBuilder compression)
 {
     host.Add(compression);
     return(host);
 }
예제 #3
0
 public static IServerHost StrictTransport(this IServerHost host, StrictTransportPolicy policy)
 {
     host.Add(new StrictTransportConcernBuilder().Policy(policy));
     return(host);
 }