add aspnet server
This commit is contained in:
16
AZKi Server/Services/FileScannerService.cs
Normal file
16
AZKi Server/Services/FileScannerService.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
|
||||
namespace AZKiServer.Services;
|
||||
|
||||
public class FileScannerService : IHostedService
|
||||
{
|
||||
public Task StartAsync(CancellationToken cancellationToken)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
public Task StopAsync(CancellationToken cancellationToken)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
}
|
||||
22
AZKi Server/Services/GreeterService.cs
Normal file
22
AZKi Server/Services/GreeterService.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
using AZKiServer;
|
||||
using Grpc.Core;
|
||||
|
||||
namespace AZKiServer.Services
|
||||
{
|
||||
public class GreeterService : Greeter.GreeterBase
|
||||
{
|
||||
private readonly ILogger<GreeterService> _logger;
|
||||
public GreeterService(ILogger<GreeterService> logger)
|
||||
{
|
||||
_logger = logger;
|
||||
}
|
||||
|
||||
public override Task<HelloReply> SayHello(HelloRequest request, ServerCallContext context)
|
||||
{
|
||||
return Task.FromResult(new HelloReply
|
||||
{
|
||||
Message = "Hello " + request.Name
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
6
AZKi Server/Services/MediaService.cs
Normal file
6
AZKi Server/Services/MediaService.cs
Normal file
@@ -0,0 +1,6 @@
|
||||
namespace AZKiServer.Services;
|
||||
|
||||
public class MediaService
|
||||
{
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user