Exemplo n.º 1
0
 public aceServerException(string message, Exception innerEx, IAceHttpServer instance, string customTitle = "") : base(message, innerEx, instance, "Ace server")
 {
     if (!customTitle.isNullOrEmpty())
     {
         title = customTitle;
     }
     else
     {
         title = "aceServer [" + instance.instanceName + "]";
     }
 }
Exemplo n.º 2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="serverComponentBase"/> class.
        /// </summary>
        /// <param name="__serverInstance">The server instance.</param>
        /// <param name="__componentName">Name of the component.</param>
        /// <param name="__instanceName">Name of the instance.</param>
        /// <exception cref="aceServerException">Server instance is null and instance name is empty/null - null - null - Component constructor exception</exception>
        public serverComponentBase(IAceHttpServer __serverInstance, string __componentName = "", string __instanceName = "")
        {
            if (__serverInstance == null)
            {
                if (__instanceName.isNullOrEmpty())
                {
                    throw new aceServerException("Server instance is null and instance name is empty/null", null, null, "Component constructor exception");
                }
                instanceName = __instanceName;
            }
            else
            {
                serverInstance = __serverInstance;
            }

            if (componentName.isNullOrEmpty())
            {
                componentName = GetType().Name;
            }
        }
 /// <summary>
 /// Initializes a new instance of the <see cref="serverSessionControl"/> class.
 /// </summary>
 /// <param name="serverInstanceName">Name of the server instance.</param>
 public serverSessionControl(IAceHttpServer __server) : base(__server, "Session control for " + __server.instanceName, __server.instanceName)
 {
     started = DateTime.Now;
 }
Exemplo n.º 4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="aceServerUserALC"/> class.
 /// </summary>
 /// <param name="__serverInstance">The server instance.</param>
 /// <param name="__componentName">Name of the component.</param>
 /// <param name="__instanceName">Name of the instance.</param>
 public aceServerUserALC(IAceHttpServer __serverInstance) : base(__serverInstance, "ALC for " + __serverInstance.instanceName, __serverInstance.instanceName)
 {
 }