Skip to content

Commit

Permalink
add mono support.
Browse files Browse the repository at this point in the history
  • Loading branch information
ziyunhx committed Nov 10, 2015
1 parent 6612899 commit a21eb36
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 7 deletions.
3 changes: 2 additions & 1 deletion Storm.Net.Adapter/ApacheStorm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,8 @@ public static void SendMsgToParent(string message)
if (string.IsNullOrEmpty(message))
return;

Console.OutputEncoding = Encoding.UTF8;
//fix output bug on mono.
//Console.OutputEncoding = Encoding.UTF8;
Console.WriteLine(message);
Console.WriteLine("end");
}
Expand Down
4 changes: 2 additions & 2 deletions Storm.Net.Adapter/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.2.0.1")]
[assembly: AssemblyFileVersion("1.2.0.1")]
[assembly: AssemblyVersion("1.3.0.1")]
[assembly: AssemblyFileVersion("1.3.0.1")]
Binary file modified storm-starter/multilang/resources/Storm.Net.Adapter.dll
Binary file not shown.
Binary file modified storm-starter/multilang/resources/StormSample.exe
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public class DrpcTestTopologyCsharp {
public static class SimpleDRPC extends ShellBolt implements IRichBolt {

public SimpleDRPC() {
super("cmd", "/k", "CALL", "StormSample.exe", "SimpleDRPC");
super("mono", "StormSample.exe", "SimpleDRPC");

}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public class WordCountTopologyCsharp {
public static class Generator extends ShellSpout implements IRichSpout {

public Generator() {
super("cmd", "/k", "CALL", "StormSimple.exe", "generator");
super("mono", "StormSample.exe", "generator");

}

Expand All @@ -55,7 +55,7 @@ public Map<String, Object> getComponentConfiguration() {
public static class Splitter extends ShellBolt implements IRichBolt {

public Splitter() {
super("cmd", "/k", "CALL", "StormSimple.exe", "splitter");
super("mono", "StormSample.exe", "splitter");
}

@Override
Expand All @@ -72,7 +72,7 @@ public Map<String, Object> getComponentConfiguration() {
public static class Counter extends ShellBolt implements IRichBolt {

public Counter(){
super("cmd", "/k", "CALL", "StormSimple.exe", "counter");
super("mono", "StormSample.exe", "counter");
}

@Override
Expand Down

0 comments on commit a21eb36

Please sign in to comment.