Пример #1
0
 public WebService(SunfishServiceConfiguration ssc) : base(ssc)
 {
     vfs.AddVirtualFolder(null, new VFSFolderFileSystem(ssc.GetConf <string>(WebServiceConfigurator.CFG_PATH)));
     index = ssc.GetConf <string>(WebServiceConfigurator.CFG_INDEX);
     if (string.IsNullOrWhiteSpace(index))
     {
         index = null;
     }
     allowNavigation = ssc.GetConf <bool>(WebServiceConfigurator.CFG_SHARE);
     allowDelete     = ssc.GetConf <bool>(WebServiceConfigurator.CFG_DELETE);
     allowExec       = ssc.GetConf <bool>(WebServiceConfigurator.CFG_EXECUTE);
     readOnly        = ssc.GetConf <bool>(WebServiceConfigurator.CFG_RONLY);
 }
Пример #2
0
 public HelloWorldService(SunfishServiceConfiguration ssc) : base(ssc)
 {
     thing = ssc.GetConf <string>(HelloWorldServiceConfigurator.CFG_THING, "default-value");
     pass  = ssc.GetConf <string>(HelloWorldServiceConfigurator.CFG_PWD);
     ronly = ssc.GetConf <bool>(HelloWorldServiceConfigurator.CFG_RONLY);
 }