internal QueueItemCollection(VirtualServer virtualServer, bool smtp_relay)
 {
     this.m_pVirtualServer = virtualServer;
     this.m_smtp_relay     = smtp_relay;
     this.m_pCollection    = new List <QueueItem>();
     this.Bind();
 }
        public VirtualServer Add(bool enabled, string name, string assembly, string type, string initString)
        {
            string text = Guid.NewGuid().ToString();

            this.m_pParent.TCP_Client.TcpStream.WriteLine(string.Concat(new object[]
            {
                "AddVirtualServer ",
                text,
                " ",
                enabled,
                " ",
                TextUtils.QuoteString(name),
                " ",
                TextUtils.QuoteString(assembly),
                " ",
                TextUtils.QuoteString(type),
                " ",
                TextUtils.QuoteString(Convert.ToBase64String(Encoding.UTF8.GetBytes(initString)))
            }));
            string text2 = this.m_pParent.ReadLine();

            if (!text2.ToUpper().StartsWith("+OK"))
            {
                throw new Exception(text2);
            }
            VirtualServer virtualServer = new VirtualServer(this.m_pParent, this, text, enabled, name, assembly, type, initString);

            this.m_pVirtualServers.Add(virtualServer);
            return(virtualServer);
        }
Ejemplo n.º 3
0
 internal Group(VirtualServer virtualServer, GroupCollection owner, string id, string name, string descritpion, bool enabled)
 {
     this.m_pVirtualServer = virtualServer;
     this.m_pOwner         = owner;
     this.m_GroupID        = id;
     this.m_GroupName      = name;
     this.m_Description    = descritpion;
     this.m_Enabled        = enabled;
 }
Ejemplo n.º 4
0
 internal MailingList(VirtualServer virtualServer, MailingListCollection owner, string id, string name, string description, bool enabled)
 {
     this.m_pVirtualServer = virtualServer;
     this.m_pOwner         = owner;
     this.m_ID             = id;
     this.m_Name           = name;
     this.m_Description    = description;
     this.m_Enabled        = enabled;
 }
Ejemplo n.º 5
0
 internal LogSession(VirtualServer virtualServer, string service, string sessionID, DateTime startTime, IPEndPoint remoteEndPoint, string userName)
 {
     this.m_pVirtualServer  = virtualServer;
     this.m_Service         = service;
     this.m_SessionID       = sessionID;
     this.m_StartTime       = startTime;
     this.m_pRemoteEndPoint = remoteEndPoint;
     this.m_UserName        = userName;
 }
 internal GlobalMessageRule(VirtualServer virtualServer, GlobalMessageRuleCollection owner, string id, long cost, bool enabled, string description, string matchexpression, GlobalMessageRule_CheckNextRule checkNext)
 {
     this.m_pVirtualServer  = virtualServer;
     this.m_pOwner          = owner;
     this.m_ID              = id;
     this.m_Cost            = cost;
     this.m_Enabled         = enabled;
     this.m_Description     = description;
     this.m_MatchExpression = matchexpression;
     this.m_CheckNext       = checkNext;
 }
        public void Remove(VirtualServer server)
        {
            this.m_pParent.TCP_Client.TcpStream.WriteLine("DeleteVirtualServer " + server.VirtualServerID);
            string text = this.m_pParent.ReadLine();

            if (!text.ToUpper().StartsWith("+OK"))
            {
                throw new Exception(text);
            }
            this.m_pVirtualServers.Remove(server);
        }
Ejemplo n.º 8
0
 internal Filter(VirtualServer virtualServer, FilterCollection owner, string id, long cost, bool enabled, string description, string assembly, string filterClass)
 {
     this.m_pVirtualServer = virtualServer;
     this.m_pOwner         = owner;
     this.m_ID             = id;
     this.m_Cost           = cost;
     this.m_Enabled        = enabled;
     this.m_Description    = description;
     this.m_Assembly       = assembly;
     this.m_Class          = filterClass;
 }
Ejemplo n.º 9
0
 internal SharedRootFolder(VirtualServer virtualServer, SharedRootFolderCollection owner, string id, bool enabled, string name, string description, SharedFolderRootType type, string boundedUser, string boundedFolder)
 {
     this.m_pVirtualServer = virtualServer;
     this.m_pOwner         = owner;
     this.m_ID             = id;
     this.m_Enabled        = enabled;
     this.m_Name           = name;
     this.m_Description    = description;
     this.m_FolderType     = type;
     this.m_BoundedUser    = boundedUser;
     this.m_BoundedFolder  = boundedFolder;
 }
Ejemplo n.º 10
0
 internal User(VirtualServer virtualServer, UserCollection owner, string id, bool enabled, string userName, string password, string fullName, string description, int mailboxSize, UserPermissions permissions, DateTime creationTime)
 {
     this.m_pVirtualServer = virtualServer;
     this.m_pOwner         = owner;
     this.m_UserID         = id;
     this.m_Enabled        = enabled;
     this.m_UserName       = userName;
     this.m_Password       = password;
     this.m_FullName       = fullName;
     this.m_Description    = description;
     this.m_MailboxSize    = mailboxSize;
     this.m_Permissions    = permissions;
     this.m_CreationTime   = creationTime;
 }
 public UsersDefaultFolderCollection(VirtualServer virtualServer)
 {
     this.m_pVirtualServer = virtualServer;
     this.m_pFolders       = new List <UsersDefaultFolder>();
     this.Bind();
 }
 internal FilterCollection(VirtualServer virtualServer)
 {
     this.m_pVirtualServer = virtualServer;
     this.m_pFilters       = new List <Filter>();
     this.Bind();
 }
Ejemplo n.º 13
0
 internal RecycleBin(VirtualServer virtualServer)
 {
     this.m_pVirtualServer = virtualServer;
     this.Bind();
 }
Ejemplo n.º 14
0
 internal Queues(VirtualServer virtualServer)
 {
     this.m_pServer = virtualServer;
 }
Ejemplo n.º 15
0
 internal RouteCollection(VirtualServer virtualServer)
 {
     this.m_pVirtualServer = virtualServer;
     this.m_pRoutes        = new List <Route>();
     this.Bind();
 }
Ejemplo n.º 16
0
 internal Logs(VirtualServer virtualServer)
 {
     this.m_pVirtualServer = virtualServer;
 }
 internal MailingListCollection(VirtualServer virtualServer)
 {
     this.m_pVirtualServer = virtualServer;
     this.m_pMailingLists  = new List <MailingList>();
     this.Bind();
 }
Ejemplo n.º 18
0
 internal SharedRootFolderCollection(VirtualServer virtualServer)
 {
     this.m_pVirtualServer = virtualServer;
     this.m_pRootFolders   = new List <SharedRootFolder>();
     this.Bind();
 }
Ejemplo n.º 19
0
 internal GroupCollection(VirtualServer virtualServer)
 {
     this.m_pVirtualServer = virtualServer;
     this.m_pGroups        = new List <Group>();
     this.Bind();
 }
Ejemplo n.º 20
0
 internal SipRegistrationCollection(VirtualServer owner)
 {
     this.m_pOwner         = owner;
     this.m_pRegistrations = new List <SipRegistration>();
     this.Bind();
 }
 internal IPSecurityCollection(VirtualServer virtualServer)
 {
     this.m_pVirtualServer = virtualServer;
     this.m_pEntries       = new List <IPSecurity>();
     this.Bind();
 }
 internal SipCallCollection(VirtualServer virtualServer)
 {
     this.m_pVirtualServer = virtualServer;
     this.m_pCalls         = new List <SipCall>();
     this.Bind();
 }
 internal GlobalMessageRuleCollection(VirtualServer virtualServer)
 {
     this.m_pVirtualServer      = virtualServer;
     this.m_pGlobalMessageRules = new List <GlobalMessageRule>();
     this.Bind();
 }
Ejemplo n.º 24
0
 public DomainCollection(VirtualServer virtualServer)
 {
     this.m_pVirtualServer = virtualServer;
     this.m_pDomains       = new List <Domain>();
     this.Bind();
 }