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);
        }
Example #2
0
        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);
        }
Example #3
0
 public MonoServer(MonoConnectionProvider provider, ConnectionParameters parameters)
     : base(provider, parameters, provider)
 {
 }
Example #4
0
 public MonoServer(MonoConnectionProvider provider, ConnectionParameters parameters)
     : base(provider, parameters)
 {
     clientCertIssuersProp = typeof(MSI.MonoTlsSettings).GetTypeInfo().GetDeclaredProperty("ClientCertificateIssuers");
 }
Example #5
0
 public MonoClient(MonoConnectionProvider provider, ConnectionParameters parameters)
     : base(provider, parameters)
 {
 }
Example #6
0
 public MonoConnection(MonoConnectionProvider provider, ConnectionParameters parameters)
     : base(provider, parameters)
 {
     this.provider = provider;
 }