コード例 #1
0
 protected MonoConnectionTestParameters(MonoConnectionTestParameters other)
     : base(other)
 {
     Category           = other.Category;
     ConnectionFlags    = other.ConnectionFlags;
     ValidateCipherList = other.ValidateCipherList;
 }
コード例 #2
0
        static void CheckConnectionFlags(ref ConnectionTestFlags flags, HttpServerFlags serverFlags)
        {
            var sslListenerFlags = HttpServerFlags.HttpListener | HttpServerFlags.SSL;

            if ((serverFlags & sslListenerFlags) == sslListenerFlags)
            {
                flags |= ConnectionTestFlags.RequireMonoServer | ConnectionTestFlags.RequireHttpListener;
            }
        }
コード例 #3
0
 static string GetFlagsName(ConnectionTestFlags flags)
 {
     if ((flags & ConnectionTestFlags.ManualClient) != 0)
     {
         return(":ManualClient");
     }
     else if ((flags & ConnectionTestFlags.ManualServer) != 0)
     {
         return(":ManuelServer");
     }
     else
     {
         return(string.Empty);
     }
 }
コード例 #4
0
 public ConnectionTestProviderFilter(ConnectionTestCategory category, ConnectionTestFlags flags)
     : base(flags)
 {
     Category = category;
 }
コード例 #5
0
 protected bool HasFlag(ConnectionTestFlags flag)
 {
     return((Flags & flag) == flag);
 }
コード例 #6
0
 public ConnectionProviderFilter(ConnectionTestFlags flags)
 {
     Flags = flags;
 }
コード例 #7
0
 public SimpleFilter(ConnectionTestFlags flags) : base(flags)
 {
 }
コード例 #8
0
 public static ConnectionProviderFilter CreateSimpleFilter(ConnectionTestFlags flags)
 {
     return(new SimpleFilter(flags));
 }
コード例 #9
0
 public ConnectionTestProvider(ConnectionProvider client, ConnectionProvider server, ConnectionTestCategory category, ConnectionTestFlags flags)
     : base(client, server, string.Format("{0}:{1}:{2}{3}", client.Name, server.Name, category, GetFlagsName(flags)))
 {
     Category = category;
     Flags    = flags;
 }
コード例 #10
0
 public ConnectionTestFlagsAttribute(ConnectionTestFlags flags)
 {
     this.flags      = flags;
     this.identifier = Type.Name;
 }