mirror of
https://github.com/ckaczor/SystemTemperatureStatusWindow.git
synced 2026-01-14 01:25:42 -05:00
Change from service to application so GPU temperature works
This commit is contained in:
@@ -113,6 +113,12 @@ namespace SystemTemperatureStatusWindow.SystemTemperatureService {
|
||||
|
||||
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/ISystemTemperatureService/GetDeviceList", ReplyAction="http://tempuri.org/ISystemTemperatureService/GetDeviceListResponse")]
|
||||
System.Threading.Tasks.Task<System.Collections.Generic.List<SystemTemperatureStatusWindow.SystemTemperatureService.Device>> GetDeviceListAsync();
|
||||
|
||||
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/ISystemTemperatureService/Shutdown", ReplyAction="http://tempuri.org/ISystemTemperatureService/ShutdownResponse")]
|
||||
void Shutdown();
|
||||
|
||||
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/ISystemTemperatureService/Shutdown", ReplyAction="http://tempuri.org/ISystemTemperatureService/ShutdownResponse")]
|
||||
System.Threading.Tasks.Task ShutdownAsync();
|
||||
}
|
||||
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
|
||||
@@ -149,5 +155,13 @@ namespace SystemTemperatureStatusWindow.SystemTemperatureService {
|
||||
public System.Threading.Tasks.Task<System.Collections.Generic.List<SystemTemperatureStatusWindow.SystemTemperatureService.Device>> GetDeviceListAsync() {
|
||||
return base.Channel.GetDeviceListAsync();
|
||||
}
|
||||
|
||||
public void Shutdown() {
|
||||
base.Channel.Shutdown();
|
||||
}
|
||||
|
||||
public System.Threading.Tasks.Task ShutdownAsync() {
|
||||
return base.Channel.ShutdownAsync();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -134,6 +134,44 @@
|
||||
</wsp:All>
|
||||
</wsp:ExactlyOne>
|
||||
</wsp:Policy>
|
||||
<wsp:Policy wsu:Id="WSHttpBinding_ISystemTemperatureService_Shutdown_Input_policy">
|
||||
<wsp:ExactlyOne>
|
||||
<wsp:All>
|
||||
<sp:SignedParts xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
|
||||
<sp:Body />
|
||||
<sp:Header Name="To" Namespace="http://www.w3.org/2005/08/addressing" />
|
||||
<sp:Header Name="From" Namespace="http://www.w3.org/2005/08/addressing" />
|
||||
<sp:Header Name="FaultTo" Namespace="http://www.w3.org/2005/08/addressing" />
|
||||
<sp:Header Name="ReplyTo" Namespace="http://www.w3.org/2005/08/addressing" />
|
||||
<sp:Header Name="MessageID" Namespace="http://www.w3.org/2005/08/addressing" />
|
||||
<sp:Header Name="RelatesTo" Namespace="http://www.w3.org/2005/08/addressing" />
|
||||
<sp:Header Name="Action" Namespace="http://www.w3.org/2005/08/addressing" />
|
||||
</sp:SignedParts>
|
||||
<sp:EncryptedParts xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
|
||||
<sp:Body />
|
||||
</sp:EncryptedParts>
|
||||
</wsp:All>
|
||||
</wsp:ExactlyOne>
|
||||
</wsp:Policy>
|
||||
<wsp:Policy wsu:Id="WSHttpBinding_ISystemTemperatureService_Shutdown_output_policy">
|
||||
<wsp:ExactlyOne>
|
||||
<wsp:All>
|
||||
<sp:SignedParts xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
|
||||
<sp:Body />
|
||||
<sp:Header Name="To" Namespace="http://www.w3.org/2005/08/addressing" />
|
||||
<sp:Header Name="From" Namespace="http://www.w3.org/2005/08/addressing" />
|
||||
<sp:Header Name="FaultTo" Namespace="http://www.w3.org/2005/08/addressing" />
|
||||
<sp:Header Name="ReplyTo" Namespace="http://www.w3.org/2005/08/addressing" />
|
||||
<sp:Header Name="MessageID" Namespace="http://www.w3.org/2005/08/addressing" />
|
||||
<sp:Header Name="RelatesTo" Namespace="http://www.w3.org/2005/08/addressing" />
|
||||
<sp:Header Name="Action" Namespace="http://www.w3.org/2005/08/addressing" />
|
||||
</sp:SignedParts>
|
||||
<sp:EncryptedParts xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
|
||||
<sp:Body />
|
||||
</sp:EncryptedParts>
|
||||
</wsp:All>
|
||||
</wsp:ExactlyOne>
|
||||
</wsp:Policy>
|
||||
<wsdl:types>
|
||||
<xsd:schema targetNamespace="http://tempuri.org/Imports">
|
||||
<xsd:import schemaLocation="http://localhost/SystemTemperatureService/SystemTemperatureService.svc?xsd=xsd0" namespace="http://tempuri.org/" />
|
||||
@@ -147,11 +185,21 @@
|
||||
<wsdl:message name="ISystemTemperatureService_GetDeviceList_OutputMessage">
|
||||
<wsdl:part name="parameters" element="tns:GetDeviceListResponse" />
|
||||
</wsdl:message>
|
||||
<wsdl:message name="ISystemTemperatureService_Shutdown_InputMessage">
|
||||
<wsdl:part name="parameters" element="tns:Shutdown" />
|
||||
</wsdl:message>
|
||||
<wsdl:message name="ISystemTemperatureService_Shutdown_OutputMessage">
|
||||
<wsdl:part name="parameters" element="tns:ShutdownResponse" />
|
||||
</wsdl:message>
|
||||
<wsdl:portType name="ISystemTemperatureService">
|
||||
<wsdl:operation name="GetDeviceList">
|
||||
<wsdl:input wsaw:Action="http://tempuri.org/ISystemTemperatureService/GetDeviceList" message="tns:ISystemTemperatureService_GetDeviceList_InputMessage" />
|
||||
<wsdl:output wsaw:Action="http://tempuri.org/ISystemTemperatureService/GetDeviceListResponse" message="tns:ISystemTemperatureService_GetDeviceList_OutputMessage" />
|
||||
</wsdl:operation>
|
||||
<wsdl:operation name="Shutdown">
|
||||
<wsdl:input wsaw:Action="http://tempuri.org/ISystemTemperatureService/Shutdown" message="tns:ISystemTemperatureService_Shutdown_InputMessage" />
|
||||
<wsdl:output wsaw:Action="http://tempuri.org/ISystemTemperatureService/ShutdownResponse" message="tns:ISystemTemperatureService_Shutdown_OutputMessage" />
|
||||
</wsdl:operation>
|
||||
</wsdl:portType>
|
||||
<wsdl:binding name="WSHttpBinding_ISystemTemperatureService" type="tns:ISystemTemperatureService">
|
||||
<wsp:PolicyReference URI="#WSHttpBinding_ISystemTemperatureService_policy" />
|
||||
@@ -167,6 +215,17 @@
|
||||
<soap12:body use="literal" />
|
||||
</wsdl:output>
|
||||
</wsdl:operation>
|
||||
<wsdl:operation name="Shutdown">
|
||||
<soap12:operation soapAction="http://tempuri.org/ISystemTemperatureService/Shutdown" style="document" />
|
||||
<wsdl:input>
|
||||
<wsp:PolicyReference URI="#WSHttpBinding_ISystemTemperatureService_Shutdown_Input_policy" />
|
||||
<soap12:body use="literal" />
|
||||
</wsdl:input>
|
||||
<wsdl:output>
|
||||
<wsp:PolicyReference URI="#WSHttpBinding_ISystemTemperatureService_Shutdown_output_policy" />
|
||||
<soap12:body use="literal" />
|
||||
</wsdl:output>
|
||||
</wsdl:operation>
|
||||
</wsdl:binding>
|
||||
<wsdl:service name="SystemTemperatureService">
|
||||
<wsdl:port name="WSHttpBinding_ISystemTemperatureService" binding="tns:WSHttpBinding_ISystemTemperatureService">
|
||||
|
||||
@@ -13,4 +13,14 @@
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="Shutdown">
|
||||
<xs:complexType>
|
||||
<xs:sequence />
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="ShutdownResponse">
|
||||
<xs:complexType>
|
||||
<xs:sequence />
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
</xs:schema>
|
||||
Reference in New Issue
Block a user