Пример #1
0
        public static void Save(IValueSink sink, AtomicWriteFileAck value)
        {
            sink.EnterChoice((byte)value.Tag);
            switch (value.Tag)
            {
            case Tags.FileStartPosition:
                Value <FileStartPositionWrapper> .Save(sink, (FileStartPositionWrapper)value);

                break;

            case Tags.FileStartRecord:
                Value <FileStartRecordWrapper> .Save(sink, (FileStartRecordWrapper)value);

                break;

            default:
                throw new Exception();
            }
            sink.LeaveChoice();
        }
Пример #2
0
        public static AtomicWriteFileAck Load(IValueStream stream)
        {
            AtomicWriteFileAck ret = null;
            Tags tag = (Tags)stream.EnterChoice();

            switch (tag)
            {
            case Tags.FileStartPosition:
                ret = Value <FileStartPositionWrapper> .Load(stream);

                break;

            case Tags.FileStartRecord:
                ret = Value <FileStartRecordWrapper> .Load(stream);

                break;

            default:
                throw new Exception();
            }
            stream.LeaveChoice();
            return(ret);
        }
Пример #3
0
 public static void Save(IValueSink sink, AtomicWriteFileAck value)
 {
     sink.EnterChoice((byte)value.Tag);
     switch(value.Tag)
     {
         case Tags.FileStartPosition:
             Value<FileStartPositionWrapper>.Save(sink, (FileStartPositionWrapper)value);
             break;
         case Tags.FileStartRecord:
             Value<FileStartRecordWrapper>.Save(sink, (FileStartRecordWrapper)value);
             break;
         default:
             throw new Exception();
     }
     sink.LeaveChoice();
 }
Пример #4
0
 public AtomicWriteFileWrapper(AtomicWriteFileAck item)
 {
     this.Item = item;
 }
Пример #5
0
 public static ConfirmedServiceAck NewAtomicWriteFile(AtomicWriteFileAck atomicWriteFile)
 {
     return new AtomicWriteFileWrapper(atomicWriteFile);
 }
Пример #6
0
 public static ConfirmedServiceAck NewAtomicWriteFile(AtomicWriteFileAck atomicWriteFile)
 {
     return(new AtomicWriteFileWrapper(atomicWriteFile));
 }
Пример #7
0
 public AtomicWriteFileWrapper(AtomicWriteFileAck item)
 {
     this.Item = item;
 }