public static MonoConnectionProvider RegisterProvider(ConnectionProviderFactory factory, MonoTlsProvider provider) { var type = ConnectionProviderFactory.GetConnectionProviderType(provider.ID); var flags = ConnectionProviderFactory.GetConnectionProviderFlags(type); var mcp = new MonoConnectionProvider(factory, type, flags, provider.Name, provider); factory.Install(mcp); return(mcp); }
public static MonoConnectionProvider RegisterProvider(ConnectionProviderFactory factory, MonoTlsProvider provider, IMonoConnectionFrameworkSetup setup, bool second) { var type = ConnectionProviderFactory.GetConnectionProviderType(provider.ID); var flags = ConnectionProviderFactory.GetConnectionProviderFlags(type); if (second) { flags |= ConnectionProviderFlags.IsExplicit; } if (!setup.SupportsMonoExtensions) { flags |= ConnectionProviderFlags.DisableMonoExtensions; } var mcp = new MonoConnectionProvider(factory, type, flags, provider.Name, provider); factory.Install(mcp); return(mcp); }
public void Initialize(ConnectionProviderFactory factory, IDefaultConnectionSettings settings) { openSslConnectionProvider = new OpenSslConnectionProvider(factory); factory.Install(openSslConnectionProvider); }