Exemplo n.º 1
0
        public eLePhantClientSink(IClientChannelSinkProvider Provider, string url)
        {
            object nextobject = new BinaryClientFormatterSink(this);

            this.m_url               = url;
            this.m_Provider          = Provider as eLePhantClientSinkProvider;
            this.m_NextChannelSink   = nextobject as IClientChannelSink;
            this.m_NextMessageSink   = nextobject as IMessageSink;
            m_preferences            = new Config(Application.StartupPath, "config.xml", "0.02", "lphantKernel");
            this.m_CompressionMethod = (CompressionType)m_preferences.GetEnum("CompressionMethod", CompressionType.Zip);
        }
Exemplo n.º 2
0
        public eLePhantClientSink(IClientChannelSinkProvider Provider, string url, object nextobject)
        {
            this.m_url=url;
            this.m_Provider=Provider as eLePhantClientSinkProvider;
            if (nextobject != null)
            {
                this.m_NextChannelSink = nextobject as IClientChannelSink;
                if (this.m_NextChannelSink ==null)
                    this.m_NextChannelSink = (IClientChannelSink)new BinaryClientFormatterSink(this);

                this.m_NextMessageSink = nextobject as IMessageSink;
                if (this.m_NextMessageSink == null)
                    this.m_NextMessageSink = (IMessageSink)new BinaryClientFormatterSink(this);

            }
            m_preferences = new Config(Application.StartupPath, "config.xml", "0.02", "lphantKernel");
            this.m_CompressionMethod=(CompressionType)m_preferences.GetEnum("CompressionMethod",CompressionType.Zip);
        }