csharp_rpc 0.0.2 copy "csharp_rpc: ^0.0.2" to clipboard
csharp_rpc: ^0.0.2 copied to clipboard

discontinued

Execute C# code from Dart (Flutter) application via JSON-RPC protocol.

example/README.md

import 'package:csharp_rpc/csharp_rpc.dart';

// create instance of CsharpRpc
var pathToCsharpExecutableFile = "<path_to_your_csharp_app>/CsharpApp.exe";

CsharpRpc csharpRpc = await CsharpRpc(pathToCsharpExecutableFile).start();

// invoke the C# method 'GetCurrentDateTime'
var currentDateTime = await csharpRpc.invoke(method: "GetCurrentDateTime");

// invoke the C# method 'SumNumbers' with array of parameters
var sum = await csharpRpc.invoke<int>(method: "SumNumbers", params: [2, 3]);

// invoke the C# method 'GetFilesInFolder' with typed request parameter
var filesResult = await csharpRpc.invoke(
   method: "GetFilesInFolder",
   param: GetFilesInFolderRequest(folderPath: Directory.current.path)
);
var files = FilesInFolderResponse.fromJson(filesResult);
12
likes
0
pub points
68%
popularity

Publisher

verified publisherkremer.software

Execute C# code from Dart (Flutter) application via JSON-RPC protocol.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

uuid

More

Packages that depend on csharp_rpc