예제 #1
0
        static void Main(string[] args)
        {
            Ac4ySDSequenceEntityMethods     ac4YSDSequenceEntityMethods     = new Ac4ySDSequenceEntityMethods("Ac4ySD2");
            Ac4ySDSequencePersistentService ac4YSDSequencePersistentService = new Ac4ySDSequencePersistentService("Ac4ySD2");

            Ac4ySDSequence sequence = new Ac4ySDSequence()
            {
                Communication = new List <Ac4ySDCommunication>()
                {
                    new Ac4ySDCommunication()
                    {
                        Sender = new Ac4ySDParticipant()
                        {
                            Name = "frontend"
                        }
                        , Receiver = new Ac4ySDParticipant()
                        {
                            Name = "backend"
                        }
                        , Message = new Ac4ySDMessage()
                        {
                            Message = "login"
                        }
                    }
                    , new Ac4ySDCommunication()
                    {
                        Sender = new Ac4ySDParticipant()
                        {
                            Name = "backend"
                        }
                        , Receiver = new Ac4ySDParticipant()
                        {
                            Name = "frontend"
                        }
                        , Message = new Ac4ySDMessage()
                        {
                            Message = "ok"
                        }
                    }
                }
            };

            GetObjectResponse obj = ac4YSDSequencePersistentService.GetFirstWithXML(1);

            Console.WriteLine(obj.GUID);
        }
        public GetObjectResponse Save(Ac4ySDSequence _Ac4ySDSequence)
        {
            Ac4ySDSequencePersistentService persistentService = new Ac4ySDSequencePersistentService(baseName);

            return(persistentService.Save(_Ac4ySDSequence));
        }
        public GetObjectResponse GetFirstWithXML(int id)
        {
            Ac4ySDSequencePersistentService persistentService = new Ac4ySDSequencePersistentService(baseName);

            return(persistentService.GetFirstWithXML(id));
        }