CrazyIter 5 éve
szülő
commit
7ef2d1180b

+ 11 - 0
TEAMModelOS.GRPC/Models/Params.cs

@@ -0,0 +1,11 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Threading.Tasks;
+
+namespace TEAMModelOS.GRPC.Models
+{
+    public class Params
+    {
+    }
+}

+ 0 - 26
TEAMModelOS.GRPC/Services/GreeterService.cs

@@ -1,26 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Threading.Tasks;
-using Grpc.Core;
-using Microsoft.Extensions.Logging;
-
-namespace TEAMModelOS.GRPC
-{
-    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
-            });
-        }
-    }
-}

+ 1 - 1
TEAMModelOS.GRPC/Startup.cs

@@ -31,7 +31,7 @@ namespace TEAMModelOS.GRPC
 
 
             app.UseEndpoints(endpoints =>
             app.UseEndpoints(endpoints =>
             {
             {
-                endpoints.MapGrpcService<GreeterService>();
+                //endpoints.MapGrpcService<GreeterService>();
 
 
                 endpoints.MapGet("/", async context =>
                 endpoints.MapGet("/", async context =>
                 {
                 {

+ 8 - 1
TEAMModelOS.GRPC/TEAMModelOS.GRPC.csproj

@@ -3,12 +3,19 @@
   <PropertyGroup>
   <PropertyGroup>
     <TargetFramework>netcoreapp3.1</TargetFramework>
     <TargetFramework>netcoreapp3.1</TargetFramework>
   </PropertyGroup>
   </PropertyGroup>
-
+  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
+    <DocumentationFile>TEAMModelOS.GRPC.xml</DocumentationFile>
+  </PropertyGroup>
   <ItemGroup>
   <ItemGroup>
     <PackageReference Include="Grpc.AspNetCore" Version="2.27.0" />
     <PackageReference Include="Grpc.AspNetCore" Version="2.27.0" />
   </ItemGroup>
   </ItemGroup>
 
 
   <ItemGroup>
   <ItemGroup>
     <Folder Include="Protos\" />
     <Folder Include="Protos\" />
+    <Folder Include="Services\Core\" />
+    <Folder Include="Services\Courses\" />
+    <Folder Include="Services\Exam\" />
+    <Folder Include="Services\Learn\" />
+    <Folder Include="Services\Syllabus\" />
   </ItemGroup>
   </ItemGroup>
 </Project>
 </Project>

+ 3 - 1
TEAMModelOS.Service/TEAMModelOS.Service.csproj

@@ -3,7 +3,9 @@
   <PropertyGroup>
   <PropertyGroup>
     <TargetFramework>netcoreapp3.1</TargetFramework>
     <TargetFramework>netcoreapp3.1</TargetFramework>
   </PropertyGroup>
   </PropertyGroup>
-
+  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
+    <DocumentationFile>TEAMModelOS.Model.xml</DocumentationFile>
+  </PropertyGroup>
   <ItemGroup>
   <ItemGroup>
     <ProjectReference Include="..\TEAMModelOS.SDK\TEAMModelOS.SDK.csproj" />
     <ProjectReference Include="..\TEAMModelOS.SDK\TEAMModelOS.SDK.csproj" />
   </ItemGroup>
   </ItemGroup>