Esempio n. 1
0
        /// <summary>
        /// Creates a new abstract HTTPService.
        /// </summary>
        /// <param name="IHTTPConnection">The http connection for this request.</param>
        /// <param name="HTTPContentType">A http content type.</param>
        /// <param name="ResourcePath">The path to internal resources.</param>
        public AHTTPService(IHTTPConnection IHTTPConnection, HTTPContentType HTTPContentType, String ResourcePath)
        {
            #region Initial checks

            if (IHTTPConnection == null)
                throw new ArgumentNullException("The given IHTTPConnection must not be null!");

            if (HTTPContentType == null)
                throw new ArgumentNullException("The given HTTPContentType must not be null!");

            if (ResourcePath.IsNullOrEmpty())
                throw new ArgumentNullException("The given ResourcePath must not be null or empty!");

            #endregion

            this.IHTTPConnection  = IHTTPConnection;
            this.HTTPContentTypes = new HTTPContentType[1] { HTTPContentType };
            this.ResourcePath     = ResourcePath;
        }
Esempio n. 2
0
 /// <summary>
 /// Creates a new abstract Aegir HTTP service.
 /// </summary>
 /// <param name="IHTTPConnection">The http connection for this request.</param>
 /// <param name="HTTPContentType">A content type.</param>
 /// <param name="ResourcePath">The path to internal resources.</param>
 public AAegirHTTPService(IHTTPConnection IHTTPConnection, HTTPContentType HTTPContentType)
     : base(IHTTPConnection, HTTPContentType, "LinkedEnergyMap.resources.")
 {
 }
 /// <summary>
 /// Creates a new abstract OCPP CIMS service.
 /// </summary>
 /// <param name="IHTTPConnection">The http connection for this request.</param>
 /// <param name="HTTPContentType">A content type.</param>
 /// <param name="ResourcePath">The path to internal resources.</param>
 public AGraphService(IHTTPConnection IHTTPConnection, HTTPContentType HTTPContentType)
     : base(IHTTPConnection, HTTPContentType, "GraphServer.resources.")
 { }
Esempio n. 4
0
 /// <summary>
 /// Creates a new abstract ATileService.
 /// </summary>
 /// <param name="IHTTPConnection">The http connection for this request.</param>
 /// <param name="HTTPContentTypes">An enumeration of content types.</param>
 public AAegirTileService(IHTTPConnection IHTTPConnection, IEnumerable<HTTPContentType> HTTPContentTypes)
     : base(IHTTPConnection, HTTPContentTypes, "TileServer.resources.")
 {
 }
 /// <summary>
 /// Creates a new central system.
 /// </summary>
 /// <param name="IHTTPConnection">The http connection for this request.</param>
 public GraphService_HTML(IHTTPConnection IHTTPConnection)
     : base(IHTTPConnection, HTTPContentType.HTML_UTF8)
 {
     this.CallingAssembly = Assembly.GetExecutingAssembly();
 }
Esempio n. 6
0
 /// <summary>
 /// GEXF content representation.
 /// </summary>
 /// <param name="IHTTPConnection">The http connection for this request.</param>
 public BifrostService_GEXF(IHTTPConnection IHTTPConnection)
     : base(IHTTPConnection, HTTPContentType.GEXF_UTF8)
 {
     this.CallingAssembly = Assembly.GetExecutingAssembly();
 }
 /// <summary>
 /// Creates a new Aegir HTTP service.
 /// </summary>
 /// <param name="IHTTPConnection">The http connection for this request.</param>
 public AegirHTTPService_EVENTSTREAM(IHTTPConnection IHTTPConnection)
     : base(IHTTPConnection, HTTPContentType.EVENTSTREAM)
 {
     this.CallingAssembly = Assembly.GetExecutingAssembly();
 }
Esempio n. 8
0
 /// <summary>
 /// Creates a new DefaultHTTPService.
 /// </summary>
 /// <param name="myIHTTPConnection">The http connection for this request.</param>
 public DefaultHTTPService(IHTTPConnection myIHTTPConnection)
 {
     IHTTPConnection = myIHTTPConnection;
 }
Esempio n. 9
0
 /// <summary>
 /// Creates a new abstract OCPP CIMS service.
 /// </summary>
 /// <param name="IHTTPConnection">The http connection for this request.</param>
 /// <param name="HTTPContentTypes">An enumeration of content types.</param>
 /// <param name="ResourcePath">The path to internal resources.</param>
 public AProjectService(IHTTPConnection IHTTPConnection, IEnumerable<HTTPContentType> HTTPContentTypes)
     : base(IHTTPConnection, HTTPContentTypes, "graph_database.org.resources.")
 {
 }
Esempio n. 10
0
 /// <summary>
 /// Creates a new abstract OCPP CIMS service.
 /// </summary>
 /// <param name="IHTTPConnection">The http connection for this request.</param>
 /// <param name="HTTPContentType">A content type.</param>
 /// <param name="ResourcePath">The path to internal resources.</param>
 public AProjectService(IHTTPConnection IHTTPConnection, HTTPContentType HTTPContentType)
     : base(IHTTPConnection, HTTPContentType, "graph_database.org.resources.")
 {
 }
Esempio n. 11
0
        /// <summary>
        /// Creates a new abstract graph service.
        /// </summary>
        /// <param name="IHTTPConnection">The http connection for this request.</param>
        /// <param name="HTTPContentTypes">An enumeration of http content types.</param>
        /// <param name="ResourcePath">The path to internal resources.</param>
        protected ABifrostService(IHTTPConnection IHTTPConnection, IEnumerable<HTTPContentType> HTTPContentTypes, String ResourcePath)
            : base(IHTTPConnection, HTTPContentTypes, ResourcePath)
        {
            this.Graph  = new ThreadLocal<IReadOnlyGenericPropertyGraph <String, Int64, String, String, Object,
                                                                         String, Int64, String, String, Object,
                                                                         String, Int64, String, String, Object,
                                                                         String, Int64, String, String, Object>>();

            this.Vertex = new ThreadLocal<IReadOnlyGenericPropertyVertex<String, Int64, String, String, Object,
                                                                         String, Int64, String, String, Object,
                                                                         String, Int64, String, String, Object,
                                                                         String, Int64, String, String, Object>>();

            this.Edge   = new ThreadLocal<IReadOnlyGenericPropertyEdge  <String, Int64, String, String, Object,
                                                                         String, Int64, String, String, Object,
                                                                         String, Int64, String, String, Object,
                                                                         String, Int64, String, String, Object>>();

            this.Skip   = new ThreadLocal<UInt64>();
            this.Take   = new ThreadLocal<UInt64>();
        }
Esempio n. 12
0
        /// <summary>
        /// Creates a new abstract graph service.
        /// </summary>
        /// <param name="IHTTPConnection">The http connection for this request.</param>
        /// <param name="HTTPContentType">A http content type.</param>
        public ABifrostService(IHTTPConnection IHTTPConnection, HTTPContentType HTTPContentType)
            : base(IHTTPConnection, HTTPContentType, "GraphServer.resources.")
        {
            this.Graph    = new ThreadLocal<IReadOnlyGenericPropertyGraph <String, Int64, String, String, Object,
                                                                           String, Int64, String, String, Object,
                                                                           String, Int64, String, String, Object,
                                                                           String, Int64, String, String, Object>>();

            this.Vertex   = new ThreadLocal<IReadOnlyGenericPropertyVertex<String, Int64, String, String, Object,
                                                                           String, Int64, String, String, Object,
                                                                           String, Int64, String, String, Object,
                                                                           String, Int64, String, String, Object>>();

            this.Edge     = new ThreadLocal<IReadOnlyGenericPropertyEdge  <String, Int64, String, String, Object,
                                                                           String, Int64, String, String, Object,
                                                                           String, Int64, String, String, Object,
                                                                           String, Int64, String, String, Object>>();

            this.Callback = new ThreadLocal<String>();
            this.Skip     = new ThreadLocal<UInt64>();
            this.Take     = new ThreadLocal<UInt64>();
        }
Esempio n. 13
0
 /// <summary>
 /// Creates a new CanonDSLRService.
 /// </summary>
 /// <param name="IHTTPConnection">The http connection for this request.</param>
 public CanonDSLRService(IHTTPConnection IHTTPConnection)
     : base(IHTTPConnection, HTTPContentType.HTML_UTF8, "Gera.resources.")
 { }
Esempio n. 14
0
 /// <summary>
 /// Creates a new abstract Aegir HTTP service.
 /// </summary>
 /// <param name="IHTTPConnection">The http connection for this request.</param>
 /// <param name="HTTPContentTypes">An enumeration of content types.</param>
 /// <param name="ResourcePath">The path to internal resources.</param>
 public AAegirHTTPService(IHTTPConnection IHTTPConnection, IEnumerable<HTTPContentType> HTTPContentTypes)
     : base(IHTTPConnection, HTTPContentTypes, "LinkedEnergyMap.resources.")
 {
 }
Esempio n. 15
0
 /// <summary>
 /// Creates a new GeraService.
 /// </summary>
 /// <param name="IHTTPConnection">The http connection for this request.</param>
 public GeraService_JSON(IHTTPConnection IHTTPConnection)
     : base(IHTTPConnection, HTTPContentType.JSON_UTF8, "Gera.resources.")
 {
     JSON_Success      = new JObject(new JProperty("result", "success")).ToString().ToUTF8Bytes();
 }
Esempio n. 16
0
 /// <summary>
 /// Creates a new Linked Energy map service.
 /// </summary>
 /// <param name="IHTTPConnection">The http connection for this request.</param>
 public AegirHTTPService_JSON(IHTTPConnection IHTTPConnection)
     : base(IHTTPConnection, HTTPContentType.JSON_UTF8)
 {
     this.CallingAssembly = Assembly.GetExecutingAssembly();
 }
Esempio n. 17
0
 /// <summary>
 /// Creates a new GeraService.
 /// </summary>
 /// <param name="IHTTPConnection">The http connection for this request.</param>
 public GeraService_HTML(IHTTPConnection IHTTPConnection)
     : base(IHTTPConnection, HTTPContentType.HTML_UTF8, "Gera.resources.")
 {
 }
 /// <summary>
 /// Creates a new LokiHTML5Service.
 /// </summary>
 /// <param name="IHTTPConnection">The http connection for this request.</param>
 public LokiHTML5Service_EventStream(IHTTPConnection IHTTPConnection)
     : base(IHTTPConnection, HTTPContentType.EVENTSTREAM, "LokiHTML5.resources.")
 {
     this.CallingAssembly = Assembly.GetExecutingAssembly();
 }
Esempio n. 19
0
 /// <summary>
 /// Creates a new GeraService.
 /// </summary>
 /// <param name="IHTTPConnection">The http connection for this request.</param>
 public GeraService(IHTTPConnection IHTTPConnection)
     : base(IHTTPConnection, HTTPContentType.ALL, "Gera.resources.")
 {
 }
Esempio n. 20
0
 /// <summary>
 /// Creates a new RESTService_HTML.
 /// </summary>
 /// <param name="IHTTPConnection">The http connection for this request.</param>
 public RESTService_HTML(IHTTPConnection IHTTPConnection)
     : base(IHTTPConnection, HTTPContentType.HTML_UTF8, "HermodDemo.resources.")
 {
     this.CallingAssembly = Assembly.GetExecutingAssembly();
 }
Esempio n. 21
0
 /// <summary>
 /// Creates a new GeraService.
 /// </summary>
 /// <param name="IHTTPConnection">The http connection for this request.</param>
 public GeraService_EVENTSTREAM(IHTTPConnection IHTTPConnection)
     : base(IHTTPConnection, HTTPContentType.EVENTSTREAM, "Gera.resources.")
 {
 }
Esempio n. 22
0
 /// <summary>
 /// Creates a new LokiHTML5Service.
 /// </summary>
 /// <param name="IHTTPConnection">The http connection for this request.</param>
 public LokiHTML5Service(IHTTPConnection IHTTPConnection)
     : base(IHTTPConnection, HTTPContentType.ALL, "LokiHTML5.resources.")
 {
     this.CallingAssembly = Assembly.GetExecutingAssembly();
 }
Esempio n. 23
0
 /// <summary>
 /// Creates a new abstract OCPP CIMS service.
 /// </summary>
 /// <param name="IHTTPConnection">The http connection for this request.</param>
 /// <param name="HTTPContentTypes">An enumeration of content types.</param>
 /// <param name="ResourcePath">The path to internal resources.</param>
 public AGraphService(IHTTPConnection IHTTPConnection, IEnumerable<HTTPContentType> HTTPContentTypes)
     : base(IHTTPConnection, HTTPContentTypes, "GraphServer.resources.")
 { }
Esempio n. 24
0
 /// <summary>
 /// Creates a new Aegir HTTP service.
 /// </summary>
 /// <param name="IHTTPConnection">The http connection for this request.</param>
 public AegirHTTPService_ALL(IHTTPConnection IHTTPConnection)
     : base(IHTTPConnection, HTTPContentType.ALL)
 {
     this.CallingAssembly = Assembly.GetExecutingAssembly();
 }
Esempio n. 25
0
 /// <summary>
 /// Creates a new abstract ATileService.
 /// </summary>
 /// <param name="IHTTPConnection">The http connection for this request.</param>
 /// <param name="HTTPContentType">A content type.</param>
 public AAegirTileService(IHTTPConnection IHTTPConnection, HTTPContentType HTTPContentType)
     : base(IHTTPConnection, HTTPContentType, "TileServer.resources.")
 {
 }