本文整理汇总了C#中Akka.Interfaced.RequestMessage类的典型用法代码示例。如果您正苦于以下问题:C# RequestMessage类的具体用法?C# RequestMessage怎么用?C# RequestMessage使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
RequestMessage类属于Akka.Interfaced命名空间,在下文中一共展示了RequestMessage类的19个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: Echo
public Task<System.Int32> Echo(System.Int32 value)
{
var requestMessage = new RequestMessage {
InvokePayload = new IServer_PayloadTable.Echo_Invoke { value = value }
};
return SendRequestAndReceive<System.Int32>(requestMessage);
}
开发者ID:SaladLab,项目名称:Akka.Interfaced,代码行数:7,代码来源:Akka.Interfaced.CodeGen.Slim.cs
示例2: Sum
public Task<int> Sum(int a, int b)
{
var requestMessage = new RequestMessage {
InvokePayload = new ICalculator_PayloadTable.Sum_Invoke { a = a, b = b }
};
return SendRequestAndReceive<int>(requestMessage);
}
开发者ID:SaladLab,项目名称:Akka.Interfaced.SlimSocket,代码行数:7,代码来源:Akka.Interfaced.CodeGen.Slim.cs
示例3: SendRequest
void IGreeter_NoReply.GetCount()
{
var requestMessage = new RequestMessage {
InvokePayload = new IGreeter_PayloadTable.GetCount_Invoke { }
};
SendRequest(requestMessage);
}
开发者ID:SaladLab,项目名称:Akka.Interfaced.SlimSocket,代码行数:7,代码来源:Akka.Interfaced.CodeGen.Slim.cs
示例4: Greet
public Task<string> Greet(string name)
{
var requestMessage = new RequestMessage {
InvokePayload = new IGreeter_PayloadTable.Greet_Invoke { name = name }
};
return SendRequestAndReceive<string>(requestMessage);
}
开发者ID:SaladLab,项目名称:Akka.Interfaced.SlimSocket,代码行数:7,代码来源:Akka.Interfaced.CodeGen.Slim.cs
示例5: Unsubscribe
public Task Unsubscribe(HelloWorld.Interface.IGreetObserver observer)
{
var requestMessage = new RequestMessage {
InvokePayload = new IGreeterWithObserver_PayloadTable.Unsubscribe_Invoke { observer = (GreetObserver)observer }
};
return SendRequestAndWait(requestMessage);
}
开发者ID:SaladLab,项目名称:Akka.Interfaced.SlimSocket,代码行数:7,代码来源:Akka.Interfaced.CodeGen.Slim.cs
示例6: GetGreeter
public Task<HelloWorld.Interface.IGreeterWithObserver> GetGreeter()
{
var requestMessage = new RequestMessage {
InvokePayload = new IEntry_PayloadTable.GetGreeter_Invoke { }
};
return SendRequestAndReceive<HelloWorld.Interface.IGreeterWithObserver>(requestMessage);
}
开发者ID:SaladLab,项目名称:Akka.Interfaced.SlimSocket,代码行数:7,代码来源:Akka.Interfaced.CodeGen.Slim.cs
示例7: SendRequest
void ISubject_NoReply.Unsubscribe(Akka.Interfaced.SlimServer.ISubjectObserver observer)
{
var requestMessage = new RequestMessage {
InvokePayload = new ISubject_PayloadTable.Unsubscribe_Invoke { observer = (SubjectObserver)observer }
};
SendRequest(requestMessage);
}
开发者ID:SaladLab,项目名称:Akka.Interfaced,代码行数:7,代码来源:Akka.Interfaced.CodeGen.cs
示例8: SendRequest
void ICounter_NoReply.IncCounter(int delta)
{
var requestMessage = new RequestMessage {
InvokePayload = new ICounter_PayloadTable.IncCounter_Invoke { delta = delta }
};
SendRequest(requestMessage);
}
开发者ID:SaladLab,项目名称:Akka.Interfaced.SlimSocket,代码行数:7,代码来源:Akka.Interfaced.CodeGen.Slim.cs
示例9: GetCounter
public Task<UnityBasic.Interface.ICounter> GetCounter()
{
var requestMessage = new RequestMessage {
InvokePayload = new IEntry_PayloadTable.GetCounter_Invoke { }
};
return SendRequestAndReceive<UnityBasic.Interface.ICounter>(requestMessage);
}
开发者ID:SaladLab,项目名称:Akka.Interfaced.SlimSocket,代码行数:7,代码来源:Akka.Interfaced.CodeGen.Slim.cs
示例10: IncCounter
public Task IncCounter(int delta)
{
var requestMessage = new RequestMessage {
InvokePayload = new ICounter_PayloadTable.IncCounter_Invoke { delta = delta }
};
return SendRequestAndWait(requestMessage);
}
开发者ID:SaladLab,项目名称:Akka.Interfaced.SlimSocket,代码行数:7,代码来源:Akka.Interfaced.CodeGen.Slim.cs
示例11: Unsubscribe
public Task Unsubscribe(Akka.Interfaced.SlimServer.ISubjectObserver observer)
{
var requestMessage = new RequestMessage {
InvokePayload = new ISubject_PayloadTable.Unsubscribe_Invoke { observer = (SubjectObserver)observer }
};
return SendRequestAndWait(requestMessage);
}
开发者ID:SaladLab,项目名称:Akka.Interfaced,代码行数:7,代码来源:Akka.Interfaced.CodeGen.cs
示例12: GetGreeterOnAnotherChannel
public Task<UnityBasic.Interface.IGreeterWithObserver> GetGreeterOnAnotherChannel()
{
var requestMessage = new RequestMessage {
InvokePayload = new IEntry_PayloadTable.GetGreeterOnAnotherChannel_Invoke { }
};
return SendRequestAndReceive<UnityBasic.Interface.IGreeterWithObserver>(requestMessage);
}
开发者ID:SaladLab,项目名称:Akka.Interfaced.SlimSocket,代码行数:7,代码来源:Akka.Interfaced.CodeGen.Slim.cs
示例13: GetPedantic
public Task<UnityBasic.Interface.IPedantic> GetPedantic()
{
var requestMessage = new RequestMessage {
InvokePayload = new IEntry_PayloadTable.GetPedantic_Invoke { }
};
return SendRequestAndReceive<UnityBasic.Interface.IPedantic>(requestMessage);
}
开发者ID:SaladLab,项目名称:Akka.Interfaced.SlimSocket,代码行数:7,代码来源:Akka.Interfaced.CodeGen.Slim.cs
示例14: Call
public Task<object> Call(object param)
{
var requestMessage = new RequestMessage {
InvokePayload = new IDummy_PayloadTable.Call_Invoke { param = param }
};
return SendRequestAndReceive<object>(requestMessage);
}
开发者ID:SaladLab,项目名称:Akka.Interfaced,代码行数:7,代码来源:Akka.Interfaced.CodeGen.cs
示例15: SendRequest
void IServer_NoReply.Echo(System.Int32 value)
{
var requestMessage = new RequestMessage {
InvokePayload = new IServer_PayloadTable.Echo_Invoke { value = value }
};
SendRequest(requestMessage);
}
开发者ID:SaladLab,项目名称:Akka.Interfaced,代码行数:7,代码来源:Akka.Interfaced.CodeGen.Slim.cs
示例16: CallWithTag
public Task<object> CallWithTag(object param, string id = null)
{
var requestMessage = new RequestMessage {
InvokePayload = new IDummyWithTag_PayloadTable.CallWithTag_Invoke { param = param, id = id }
};
return SendRequestAndReceive<object>(requestMessage);
}
开发者ID:SaladLab,项目名称:Akka.Interfaced,代码行数:7,代码来源:Akka.Interfaced.CodeGen.cs
示例17: GetCount
public Task<int> GetCount()
{
var requestMessage = new RequestMessage {
InvokePayload = new IGreeter_PayloadTable.GetCount_Invoke { }
};
return SendRequestAndReceive<int>(requestMessage);
}
开发者ID:SaladLab,项目名称:Akka.Interfaced.SlimSocket,代码行数:7,代码来源:Akka.Interfaced.CodeGen.Slim.cs
示例18: MakeEvent
public Task MakeEvent(string eventName)
{
var requestMessage = new RequestMessage {
InvokePayload = new ISubject_PayloadTable.MakeEvent_Invoke { eventName = eventName }
};
return SendRequestAndWait(requestMessage);
}
开发者ID:SaladLab,项目名称:Akka.Interfaced,代码行数:7,代码来源:Akka.Interfaced.CodeGen.cs
示例19: Concat
public Task<string> Concat(string a, string b)
{
var requestMessage = new RequestMessage {
InvokePayload = new ICalculator_PayloadTable.Concat_Invoke { a = a, b = b }
};
return SendRequestAndReceive<string>(requestMessage);
}
开发者ID:SaladLab,项目名称:Akka.Interfaced.SlimSocket,代码行数:7,代码来源:Akka.Interfaced.CodeGen.Slim.cs
注:本文中的Akka.Interfaced.RequestMessage类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论