예제 #1
0
        public AlpacaConfiguredDevicesResponse ConfiguredDevices(
            [SwaggerSchema(Description = Strings.ClientIDDescription, Format = "uint32")][Range(0, 4294967295)] uint ClientID         = 0,
            [SwaggerSchema(Strings.ClientTransactionIDDescription, Format = "uint32")][Range(0, 4294967295)] uint ClientTransactionID = 0)
        {
            var TransactionID = DeviceManager.ServerTransactionID;

            Logging.LogAPICall(HttpContext.Connection.RemoteIpAddress, HttpContext.Request.Path.ToString(), ClientID, ClientTransactionID, TransactionID);

            return(new AlpacaConfiguredDevicesResponse(ClientTransactionID, TransactionID, DeviceManager.GetDevices()));
        }
예제 #2
0
 public override IAscomDevice GetDevice(uint DeviceNumber)
 {
     return(DeviceManager.GetObservingConditions(DeviceNumber));
 }