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); }
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); }
public ManualConnectionProvider(ConnectionProviderFactory factory, ConnectionProviderFlags flags) : base(factory, ConnectionProviderType.Manual, flags) { }
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; }
public bool HasFlag(ConnectionProviderFlags flags) { return((Flags & flags) == flags); }
protected ConnectionProvider(ConnectionProviderFactory factory, ConnectionProviderType type, ConnectionProviderFlags flags) { this.factory = factory; this.type = type; this.flags = flags; }
public MonoConnectionProvider(ConnectionProviderFactory factory, ConnectionProviderType type, ConnectionProviderFlags flags, string name, MSI.MonoTlsProvider tlsProvider) : base(factory, type, flags) { this.name = name; this.tlsProvider = tlsProvider; }
public MonoConnectionProvider (MonoConnectionProviderFactory factory, ConnectionProviderType type, ConnectionProviderFlags flags) : base (factory, type, flags) { SupportsMonoExtensions = (flags & ConnectionProviderFlags.SupportsMonoExtensions) != 0; }