Skip to content

Commit 6fde761

Browse files
Updated to .Net 8 and new Alpaca Razor Library
1 parent 16f3afd commit 6fde761

3 files changed

Lines changed: 21 additions & 7 deletions

File tree

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
<Project Sdk="Microsoft.NET.Sdk.Web">
22

33
<PropertyGroup>
4-
<TargetFramework>net6.0</TargetFramework>
4+
<TargetFramework>net8.0</TargetFramework>
55
<Nullable>enable</Nullable>
66
<ImplicitUsings>enable</ImplicitUsings>
77
</PropertyGroup>
88

99
<ItemGroup>
10-
<PackageReference Include="ASCOM.Alpaca.Razor" Version="0.4.0-alpha02" />
10+
<PackageReference Include="ASCOM.Alpaca.Razor" Version="0.4.0-alpha03" />
1111
</ItemGroup>
1212

1313
</Project>

AlpacaDriverDemo/Data/UserService.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
namespace AlpacaDriverDemo
44
{
5-
internal class UserService : IUserService
6-
{
5+
internal class UserService : ASCOM.Alpaca.IUserService
6+
{
77
public async Task<bool> Authenticate(string username, string password)
88
{
99
return await Task.Run(() =>

AlpacaDriverDemo/Drivers/BasicMonitor.cs

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace AlpacaDriverDemo.Drivers
44
{
5-
public class BasicMonitor : ISafetyMonitor
5+
public class BasicMonitor : ISafetyMonitorV3
66
{
77
public bool IsSafe
88
{
@@ -30,7 +30,11 @@ public bool IsSafe
3030

3131
public IList<string> SupportedActions => new List<string>();
3232

33-
public string Action(string ActionName, string ActionParameters)
33+
public bool Connecting => throw new NotImplementedException();
34+
35+
public List<StateValue> DeviceState => throw new NotImplementedException();
36+
37+
public string Action(string ActionName, string ActionParameters)
3438
{
3539
throw new ASCOM.NotImplementedException();
3640
}
@@ -50,7 +54,17 @@ public string CommandString(string Command, bool Raw = false)
5054
throw new ASCOM.NotImplementedException();
5155
}
5256

53-
public void Dispose()
57+
public void Connect()
58+
{
59+
throw new NotImplementedException();
60+
}
61+
62+
public void Disconnect()
63+
{
64+
throw new NotImplementedException();
65+
}
66+
67+
public void Dispose()
5468
{
5569
throw new ASCOM.NotImplementedException();
5670
}

0 commit comments

Comments
 (0)