示例#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;
        }
示例#2
0
        public Permission()
        {
            XmlNames.Init(xmlNamespace);

            Path             = "";
            PermittedClients = new List <string>();
        }
示例#3
0
        public MountInfo()
        {
            XmlNames.Init(xmlNamespace);

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

            //Initialize XmlNames helper class
            XmlNames.Init(xmlNamespace);
        }
示例#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);
        }
示例#6
0
        public RemoteMethodCall()
        {
            XmlNames.Init(xmlNamespace);

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

            this.Id = Guid.NewGuid();
        }