Migrate enterprise web application #355
-
|
Hi, Thank you |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 8 replies
-
|
Hi, .NET Remoting is deprecated; migration to something else, in your case gRPC, is a precondition for net48 to net9 migration. Client side Here you can still sit on net48 and concentrate on migration to gRPC only. Server side The application must host a web server in order to accept HTTP/2 requests, and it is about ASP.NET Core. Choice: migration to gRPC and .NET at the same time. Choice: still sit on net48 and concentrate on migration to gRPC only. Be aware that Grpc.Core.Server is in maintenance mode and will be deprecated in favor of gRPC .NET. See Grpc.Core.DesignTime and Grpc.Core.ReflectionEmit Contract, data marshaling BinarySerializer is deprecated as well as ISerializable interface. DataContractSerializer behavior is very close to BinarySerializer, may be it is a good choice for the begining. See also MessagePackMarshaller, ProtobufMarshaller. Synchronous calls sync or async or both is your choice: [ServiceContract]
public interface IFoo
{
[OperationContract]
Bar GetBar(); // blocking unary call
[OperationContract]
Task<Bar> GetBarAsync(); // async unary call
}see also SyncOverAsync |
Beta Was this translation helpful? Give feedback.
-
Under the hood ServiceModel.Grpc does some code generation. With
Usually, after building the solution and restarting IDE, the problem should disappear. Related to Roslyn Source Generators and IDE integration.
Certainly not. |
Beta Was this translation helpful? Give feedback.
-
need to double-check.
var server = new Grpc.Core.Server
{
Ports = { new ServerPort("localhost", 8082, ServerCredentials.Insecure) }
};
server.Services.AddCalculator(
new Calculator(),
options =>
{
// ...
});
server.Start();
Console.ReadLine();
await server.ShutdownAsync();
For method declarations in your example, it is expected behavior. This is a feature Sync over async.
As soon as it will be supported by C#. // Error CS1988 Async methods cannot have ref, in or out parameters
static async Task TestAsync(out string value1, ref string value2) { } |
Beta Was this translation helpful? Give feedback.
-
Follow MessagePackMarshaller.AOT example. For
The provided |
Beta Was this translation helpful? Give feedback.
-
|
Hi @AlleSchonWeg, There has been no activity for a while; consider closing the discussion. |
Beta Was this translation helpful? Give feedback.



Follow MessagePackMarshaller.AOT example. For
DesignTime, theMessagePackMarshallershould be configured. You can extend ICalculator withMultipleParametersand see how it works,The provided
WebApplication1is in Non-SDK-style format.As far as I know, Roslyn Source Generators will not work with
Non-SDK-styleformat projects.