本文整理汇总了C#中Akka.Interfaced.RequestMessage类的典型用法代码示例。如果您正苦于以下问题:C# RequestMessage类的具体用法?C# RequestMessage怎么用?C# RequestMessage使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
RequestMessage类属于Akka.Interfaced命名空间,在下文中一共展示了RequestMessage类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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);
}
示例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);
}
示例3: SendRequest
void IGreeter_NoReply.GetCount()
{
var requestMessage = new RequestMessage {
InvokePayload = new IGreeter_PayloadTable.GetCount_Invoke { }
};
SendRequest(requestMessage);
}
示例4: Greet
public Task<string> Greet(string name)
{
var requestMessage = new RequestMessage {
InvokePayload = new IGreeter_PayloadTable.Greet_Invoke { name = name }
};
return SendRequestAndReceive<string>(requestMessage);
}
示例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);
}
示例6: GetGreeter
public Task<HelloWorld.Interface.IGreeterWithObserver> GetGreeter()
{
var requestMessage = new RequestMessage {
InvokePayload = new IEntry_PayloadTable.GetGreeter_Invoke { }
};
return SendRequestAndReceive<HelloWorld.Interface.IGreeterWithObserver>(requestMessage);
}
示例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);
}
示例8: SendRequest
void ICounter_NoReply.IncCounter(int delta)
{
var requestMessage = new RequestMessage {
InvokePayload = new ICounter_PayloadTable.IncCounter_Invoke { delta = delta }
};
SendRequest(requestMessage);
}
示例9: GetCounter
public Task<UnityBasic.Interface.ICounter> GetCounter()
{
var requestMessage = new RequestMessage {
InvokePayload = new IEntry_PayloadTable.GetCounter_Invoke { }
};
return SendRequestAndReceive<UnityBasic.Interface.ICounter>(requestMessage);
}
示例10: IncCounter
public Task IncCounter(int delta)
{
var requestMessage = new RequestMessage {
InvokePayload = new ICounter_PayloadTable.IncCounter_Invoke { delta = delta }
};
return SendRequestAndWait(requestMessage);
}
示例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);
}
示例12: GetGreeterOnAnotherChannel
public Task<UnityBasic.Interface.IGreeterWithObserver> GetGreeterOnAnotherChannel()
{
var requestMessage = new RequestMessage {
InvokePayload = new IEntry_PayloadTable.GetGreeterOnAnotherChannel_Invoke { }
};
return SendRequestAndReceive<UnityBasic.Interface.IGreeterWithObserver>(requestMessage);
}
示例13: GetPedantic
public Task<UnityBasic.Interface.IPedantic> GetPedantic()
{
var requestMessage = new RequestMessage {
InvokePayload = new IEntry_PayloadTable.GetPedantic_Invoke { }
};
return SendRequestAndReceive<UnityBasic.Interface.IPedantic>(requestMessage);
}
示例14: Call
public Task<object> Call(object param)
{
var requestMessage = new RequestMessage {
InvokePayload = new IDummy_PayloadTable.Call_Invoke { param = param }
};
return SendRequestAndReceive<object>(requestMessage);
}
示例15: SendRequest
void IServer_NoReply.Echo(System.Int32 value)
{
var requestMessage = new RequestMessage {
InvokePayload = new IServer_PayloadTable.Echo_Invoke { value = value }
};
SendRequest(requestMessage);
}