-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MetadataReferenceService.BlazorWasm - WebcilConverterUtil (#9)
* WebcilConverter * _protobufAsByteArray * . * . * . * . * ? * . * . * . * . * xxx * ... * . * . * ok * copy * x * ! * ---------- * DownloadFileAsync * il * okeee * move * epoch * StreamExtensions * WebcilWasmWrapperHelper * ,,,,,,,,,,,,,, * <Version>0.0.1-preview-01</Version> * MetadataReferenceService.Abstractions * MetadataReferenceService.BlazorWasm * AssemblyDetails * . * key * p * CreateFromImageMetadataReferenceService * internal * . * . * v * GetHashCode * <Version>0.0.1-preview-03</Version> * <Version>0.2.0-preview-03</Version> * AssemblyDetailsTests * .
- Loading branch information
Showing
64 changed files
with
1,591 additions
and
1,378 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,18 @@ | ||
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation"> | ||
<s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/Abbreviations/=BE/@EntryIndexedValue">BE</s:String> | ||
<s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/Abbreviations/=DOS/@EntryIndexedValue">DOS</s:String> | ||
<s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/Abbreviations/=MSDOS/@EntryIndexedValue">MSDOS</s:String> | ||
<s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/Abbreviations/=NT/@EntryIndexedValue">NT</s:String> | ||
<s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/Abbreviations/=PE/@EntryIndexedValue">PE</s:String> | ||
<s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/Abbreviations/=ULEB/@EntryIndexedValue">ULEB</s:String> | ||
<s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/Abbreviations/=WASM/@EntryIndexedValue">WASM</s:String> | ||
<s:Boolean x:Key="/Default/UserDictionary/Words/=endian/@EntryIndexedValue">True</s:Boolean> | ||
<s:Boolean x:Key="/Default/UserDictionary/Words/=Grpc/@EntryIndexedValue">True</s:Boolean> | ||
<s:Boolean x:Key="/Default/UserDictionary/Words/=protobuf/@EntryIndexedValue">True</s:Boolean></wpf:ResourceDictionary> | ||
<s:Boolean x:Key="/Default/UserDictionary/Words/=heyenrath/@EntryIndexedValue">True</s:Boolean> | ||
<s:Boolean x:Key="/Default/UserDictionary/Words/=MSDOS/@EntryIndexedValue">True</s:Boolean> | ||
<s:Boolean x:Key="/Default/UserDictionary/Words/=protobuf/@EntryIndexedValue">True</s:Boolean> | ||
<s:Boolean x:Key="/Default/UserDictionary/Words/=reloc/@EntryIndexedValue">True</s:Boolean> | ||
<s:Boolean x:Key="/Default/UserDictionary/Words/=rsrc/@EntryIndexedValue">True</s:Boolean> | ||
<s:Boolean x:Key="/Default/UserDictionary/Words/=ULEB/@EntryIndexedValue">True</s:Boolean> | ||
<s:Boolean x:Key="/Default/UserDictionary/Words/=unwrapper/@EntryIndexedValue">True</s:Boolean> | ||
<s:Boolean x:Key="/Default/UserDictionary/Words/=Webcil/@EntryIndexedValue">True</s:Boolean></wpf:ResourceDictionary> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,6 +45,21 @@ public static async Task Main() | |
.WithGrpcHeader(true); | ||
var protobuf4WithGrpcHeader = await converter.ConvertAsync(convertToProtoBufRequestWithGrpcHeader); | ||
|
||
int x = 9; | ||
var person = new | ||
{ | ||
Name = "stef heyenrath", | ||
Id = 42, | ||
Email = "[email protected]" | ||
}; | ||
|
||
var convertToProtoBufRequestPerson = new ConvertToProtoBufRequest(protoDefinition, "greet.Person", person); | ||
var protobuf3PersonBytes = await converter.ConvertAsync(convertToProtoBufRequestPerson); | ||
var personAsString = ByteArrayToString(protobuf3PersonBytes); | ||
int x = 0; | ||
} | ||
|
||
public static string ByteArrayToString(byte[] byteArray) | ||
{ | ||
return string.Join(", ", byteArray.Select(b => $"0x{b:X2}")); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 0 additions & 19 deletions
19
...soft.NET.WebAssembly.Webcil.ConsoleApp/Microsoft.NET.WebAssembly.Webcil.ConsoleApp.csproj
This file was deleted.
Oops, something went wrong.
117 changes: 0 additions & 117 deletions
117
examples/Microsoft.NET.WebAssembly.Webcil.ConsoleApp/Program.cs
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.