Ejemplo n.º 1
0
        public void ToSPLog()
        {
            IEnumerable <FieldInfo> fields = GetCfgFields();

            foreach (FieldInfo field in fields)
            {
                SPLog.Write("Конфигурация. {0} = <{1}>", field.Name, field.GetValue(this));
            }
        }
Ejemplo n.º 2
0
        private static void CreateServices(ListConf cfg, out Resource ResourceSvc, out LookupTable LookupTable)
        {
            string       projectServerUri = cfg.UrlServer;
            const string lookupTablePath  = "/_vti_bin/PSI/LookupTable.asmx";
            const string ServicePath      = "/_vti_bin/PSI/Resource.asmx";

            ResourceSvc     = new Resource();
            ResourceSvc.Url = projectServerUri + ServicePath;
            SPLog.Write("ProjectService.Url = {0}", ResourceSvc.Url);
            ResourceSvc.Credentials = new NetworkCredential("users", "password", "domen");

            LookupTable             = new SvcLookupTable.LookupTable();
            LookupTable.Url         = projectServerUri + lookupTablePath;
            LookupTable.Credentials = new NetworkCredential("users", "password", "domen");
            SPLog.Write("QueueService.Url = {0}", LookupTable.Url);
        }