Esempio n. 1
0
        public void TestConfiguration()
        {
            RemoteConfigurationSection <string> config = new RemoteConfigurationSection <string>();
            IList <IProcess <string> >          list   = config.Handlers;

            Assert.AreEqual <int>(3, list.Count);
        }
Esempio n. 2
0
    public string Greeting(string userName)
    {
        RemoteConfigurationSection <string> config = new RemoteConfigurationSection <string>();

        foreach (ProcessHandler <string> process in config.PreProcess)
        {
            userName = process(userName);
        }
        string result = base.Channel.Greeting(userName);

        foreach (ProcessHandler <string> process in config.PostProcess)
        {
            result = process(result);
        }
        return(result);
    }