コード例 #1
0
 static ConnectionProviderFlags GetFlags(ConnectionProviderFlags flags, MSI.MonoTlsProvider tlsProvider)
 {
     if (((flags & ConnectionProviderFlags.DisableMonoExtensions) == 0) && tlsProvider.SupportsMonoExtensions)
     {
         flags |= ConnectionProviderFlags.SupportsMonoExtensions | ConnectionProviderFlags.SupportsHttpListener;
         if (DependencyInjector.Get <IMonoConnectionFrameworkSetup> ().ProviderSupportsCleanShutdown(tlsProvider))
         {
             flags |= ConnectionProviderFlags.SupportsCleanShutdown;
         }
     }
     return(flags);
 }
コード例 #2
0
 static ConnectionProviderFlags GetFlags(ConnectionProviderFlags flags, MSI.MonoTlsProvider tlsProvider)
 {
     if (tlsProvider.SupportsMonoExtensions)
     {
         flags |= ConnectionProviderFlags.SupportsMonoExtensions | ConnectionProviderFlags.SupportsHttpListener;
         // Legacy TLS does not support the clean shutdown.
         if ((flags & ConnectionProviderFlags.SupportsTls12) != 0)
         {
             if (DependencyInjector.Get <IConnectionFrameworkSetup> ().SupportsCleanShutdown)
             {
                 flags |= ConnectionProviderFlags.SupportsCleanShutdown;
             }
         }
     }
     return(flags);
 }
コード例 #3
0
 public ManualConnectionProvider(ConnectionProviderFactory factory, ConnectionProviderFlags flags)
     : base(factory, ConnectionProviderType.Manual, flags)
 {
 }
コード例 #4
0
 internal MonoConnectionProvider(ConnectionProviderFactory factory, ConnectionProviderType type, ConnectionProviderFlags flags,
                                 string name, MSI.MonoTlsProvider tlsProvider)
     : base(factory, type, GetFlags(flags, tlsProvider))
 {
     this.name        = name;
     this.tlsProvider = tlsProvider;
 }
コード例 #5
0
 public bool HasFlag(ConnectionProviderFlags flags)
 {
     return((Flags & flags) == flags);
 }
コード例 #6
0
 protected ConnectionProvider(ConnectionProviderFactory factory, ConnectionProviderType type, ConnectionProviderFlags flags)
 {
     this.factory = factory;
     this.type    = type;
     this.flags   = flags;
 }
コード例 #7
0
 public MonoConnectionProvider(ConnectionProviderFactory factory, ConnectionProviderType type, ConnectionProviderFlags flags, string name, MSI.MonoTlsProvider tlsProvider)
     : base(factory, type, flags)
 {
     this.name        = name;
     this.tlsProvider = tlsProvider;
 }
コード例 #8
0
		public MonoConnectionProvider (MonoConnectionProviderFactory factory, ConnectionProviderType type, ConnectionProviderFlags flags)
			: base (factory, type, flags)
		{
			SupportsMonoExtensions = (flags & ConnectionProviderFlags.SupportsMonoExtensions) != 0;
		}