public TSearchServiceDemo()
 {
     try
     {
         searchServiceDemo = new SearchServiceDemo(DefaultRepository, SecondaryRepository, UserLoginName, Password);
         sampleContentManager = new SampleContentManager(searchServiceDemo);
     }
     catch (Exception e)
     {
         Console.WriteLine(e.StackTrace);
         Console.WriteLine("Failed with exception " + e.Message);
     }
 }   
 public TSearchServiceDemo()
 {
     try
     {
         searchServiceDemo    = new SearchServiceDemo(DefaultRepository, SecondaryRepository, UserLoginName, Password);
         sampleContentManager = new SampleContentManager(searchServiceDemo);
     }
     catch (Exception e)
     {
         Console.WriteLine(e.StackTrace);
         Console.WriteLine("Failed with exception " + e.Message);
     }
 }
 public TVersionControlServiceDemo()
 {
     try
     {
         versionControlServiceDemo = new VersionControlServiceDemo(DefaultRepository, SecondaryRepository, UserLoginName, Password);
         sampleContentManager = new SampleContentManager(versionControlServiceDemo);
     }
     catch (FaultException<SerializableException> ex)
     {
         Console.WriteLine(String.Format("Got FaultException[{0}] with message: {1}\n", ex.Detail, ex.Message));
     }
     catch (Exception exx)
     {
         Console.WriteLine(exx.StackTrace);
     }
 }
Пример #4
0
 public TVersionControlServiceDemo()
 {
     try
     {
         versionControlServiceDemo = new VersionControlServiceDemo(DefaultRepository, SecondaryRepository, UserLoginName, Password);
         sampleContentManager      = new SampleContentManager(versionControlServiceDemo);
     }
     catch (FaultException <SerializableException> ex)
     {
         Console.WriteLine(String.Format("Got FaultException[{0}] with message: {1}\n", ex.Detail, ex.Message));
     }
     catch (Exception exx)
     {
         Console.WriteLine(exx.StackTrace);
     }
 }
Пример #5
0
        public TLifecycleServiceDemo()
        {
            try
            {
                lifecycleServiceDemo = new LifecycleServiceDemo(DefaultRepository, SecondaryRepository, UserLoginName, Password);
                Console.WriteLine("Lifecycle Service Test"
                                  + "You must install the BusinessPolicy1 lifecycle (you can use Composer) "
                                  + "before this sample will work. The lifecycle owner_name must be the login client.");

                sampleContentManager = new SampleContentManager(lifecycleServiceDemo);
            }
            catch (FaultException <SerializableException> ex)
            {
                Console.WriteLine(String.Format("Got FaultException[{0}] with message: {1}\n", ex.Detail, ex.Message));
            }
            catch (Exception exx)
            {
                Console.WriteLine(exx.StackTrace);
            }
        }
        public TLifecycleServiceDemo()
        {
            try
            {
                lifecycleServiceDemo = new LifecycleServiceDemo(DefaultRepository, SecondaryRepository, UserLoginName, Password);
                Console.WriteLine("Lifecycle Service Test"
                + "You must install the BusinessPolicy1 lifecycle (you can use Composer) "
                + "before this sample will work. The lifecycle owner_name must be the login client.");

                sampleContentManager = new SampleContentManager(lifecycleServiceDemo);
            }
            catch (FaultException<SerializableException> ex)
            {
                Console.WriteLine(String.Format("Got FaultException[{0}] with message: {1}\n", ex.Detail, ex.Message));
            }
            catch (Exception exx)
            {
                Console.WriteLine(exx.StackTrace);
            }
        }