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