Exemple #1
0
 public static void Invoke_MethodWithoutParameters(RemObjects.SDK.IROService @__Instance, RemObjects.SDK.IMessage @__Message, RemObjects.SDK.Server.IServerChannelInfo @__ServerChannelInfo, out RemObjects.SDK.Server.ResponseOptions @__oResponseOptions)
 {
     ((ITestService)(@__Instance)).MethodWithoutParameters();
     @__Message.InitializeResponseMessage(@__ServerChannelInfo, "TestLibrary", "TestService", "MethodWithoutParametersResponse");
     @__Message.FinalizeMessage();
     @__oResponseOptions = RemObjects.SDK.Server.ResponseOptions.roNoResponse;
 }
Exemple #2
0
 public static void Invoke_MethodWithComplexTypes(RemObjects.SDK.IROService @__Instance, RemObjects.SDK.IMessage @__Message, RemObjects.SDK.Server.IServerChannelInfo @__ServerChannelInfo, out RemObjects.SDK.Server.ResponseOptions @__oResponseOptions)
 {
     RemObjects.SDK.ObjectDisposer @__ObjectDisposer = new RemObjects.SDK.ObjectDisposer(4);
     try {
         TestStructure[] data = ((TestStructure[])(@__Message.Read("data", typeof(TestStructure[]), RemObjects.SDK.StreamingFormat.Default)));
         TestStructure singleStructure = ((TestStructure)(@__Message.Read("singleStructure", typeof(TestStructure), RemObjects.SDK.StreamingFormat.Default)));
         TestEnum expectedResult = ((TestEnum)(@__Message.Read("expectedResult", typeof(TestEnum), RemObjects.SDK.StreamingFormat.Default)));
         @__ObjectDisposer.Add(data);
         @__ObjectDisposer.Add(singleStructure);
         @__ObjectDisposer.Add(expectedResult);
         TestStructure Result;
         Result = ((ITestService)(@__Instance)).MethodWithComplexTypes(data, singleStructure, expectedResult);
         @__ObjectDisposer.Add(Result);
         @__Message.InitializeResponseMessage(@__ServerChannelInfo, "TestLibrary", "TestService", "MethodWithComplexTypesResponse");
         @__Message.Write("Result", Result, typeof(TestStructure), RemObjects.SDK.StreamingFormat.Default);
         @__Message.FinalizeMessage();
         @__oResponseOptions = RemObjects.SDK.Server.ResponseOptions.roDefault;
     }
     finally {
         @__ObjectDisposer.Dispose();
     }
 }
Exemple #3
0
 public static void Invoke_MethodWithSimpleParameters(RemObjects.SDK.IROService @__Instance, RemObjects.SDK.IMessage @__Message, RemObjects.SDK.Server.IServerChannelInfo @__ServerChannelInfo, out RemObjects.SDK.Server.ResponseOptions @__oResponseOptions)
 {
     string paramA = @__Message.ReadUtf8String("paramA");
     int paramB = @__Message.ReadInt32("paramB");
     ((ITestService)(@__Instance)).MethodWithSimpleParameters(paramA, paramB);
     @__Message.InitializeResponseMessage(@__ServerChannelInfo, "TestLibrary", "TestService", "MethodWithSimpleParametersResponse");
     @__Message.FinalizeMessage();
     @__oResponseOptions = RemObjects.SDK.Server.ResponseOptions.roNoResponse;
 }
Exemple #4
0
 public static void Invoke_MethodWithResult(RemObjects.SDK.IROService @__Instance, RemObjects.SDK.IMessage @__Message, RemObjects.SDK.Server.IServerChannelInfo @__ServerChannelInfo, out RemObjects.SDK.Server.ResponseOptions @__oResponseOptions)
 {
     string param1 = @__Message.ReadUtf8String("param1");
     int param2 = @__Message.ReadInt32("param2");
     bool Result;
     Result = ((ITestService)(@__Instance)).MethodWithResult(param1, param2);
     @__Message.InitializeResponseMessage(@__ServerChannelInfo, "TestLibrary", "TestService", "MethodWithResultResponse");
     @__Message.WriteBoolean("Result", Result);
     @__Message.FinalizeMessage();
     @__oResponseOptions = RemObjects.SDK.Server.ResponseOptions.roDefault;
 }