Ejemplo n.º 1
0
        /// <summary>
        /// Initializes a new instance of RemoteError
        /// </summary>
        /// <param name="errorCode">The error that occured</param>
        public RemoteError(RemoteErrorCode errorCode)
        {
            XmlNames.Init(xmlNamespace);

            this.CallId    = Guid.Empty;
            this.ErrorCode = errorCode;
        }
Ejemplo n.º 2
0
        public Permission()
        {
            XmlNames.Init(xmlNamespace);

            Path             = "";
            PermittedClients = new List <string>();
        }
Ejemplo n.º 3
0
        public MountInfo()
        {
            XmlNames.Init(xmlNamespace);

            this.MountPoint = "";
            this.LocalPath  = "";
        }
Ejemplo n.º 4
0
        public ClientInfo()
        {
            this.TrustLevel = -1;
            this.Profiles   = new List <Profile>();

            //Initialize XmlNames helper class
            XmlNames.Init(xmlNamespace);
        }
Ejemplo n.º 5
0
        /// <summary>
        /// Serializes the object into XML
        /// </summary>
        /// <returns>Returns a XML representation of the object</returns>
        public override XElement Serialize()
        {
            XmlNames.Init(xmlNamespace);

            XElement result = new XElement(XmlNames.SnapshotInfo);

            result.Add(new XElement(XmlNames.Id, this.Id));
            result.Add(new XElement(XmlNames.Time, this.Time.ToUniversalTime().ToString("o")));

            return(result);
        }
Ejemplo n.º 6
0
        public RemoteMethodCall()
        {
            XmlNames.Init(xmlNamespace);

            Parameters = new List <object>();
        }
Ejemplo n.º 7
0
 public RemoteMethodResponse()
 {
     XmlNames.Init(xmlNamespace);
 }
Ejemplo n.º 8
0
 public FilesystemObject()
 {
     XmlNames.Init(xmlNamespace);
 }
Ejemplo n.º 9
0
        /// <summary>
        /// Initializes a new instace of SnapshotInfo
        /// </summary>
        public SnapshotInfo()
        {
            XmlNames.Init(xmlNamespace);

            this.Id = Guid.NewGuid();
        }