public MsgReference(ushort _id, MsgBody _msg, ClientReference _client, SendType _sendType = SendType.Unicast) { msg = new Msg2Handle(_id, _msg); sendType = _sendType; if (_client != null) { client = _client; } }
public MsgReference(Msg2Handle _msg, ClientReference _client, SendType _sendType = SendType.Unicast) { msg = _msg; sendType = _sendType; if (_client != null) { client = _client; } }
/// <summary> /// Initializes a new instance of the <see cref="TransactionPart2Line"/> class. /// </summary> /// <param name="sequenceNumber">The continuous sequence number.</param> /// <param name="sequenceNumberDetail">The detail number.</param> /// <param name="message">The communication.</param> /// <param name="clientReference">The customer reference.</param> /// <param name="otherAccountBic">The bic of the counterparty's bank.</param> /// <param name="transactionType">The type of the transaction.</param> /// <param name="isoReasonReturnCode">The reason return code in iso format.</param> /// <param name="categoryPurpose">The category of the purpose.</param> /// <param name="purpose">The purpose.</param> public TransactionPart2Line( SequenceNumber sequenceNumber, SequenceNumberDetail sequenceNumberDetail, Message message, ClientReference clientReference, Bic otherAccountBic, TransactionCodeType transactionType, IsoReasonReturnCode isoReasonReturnCode, CategoryPurpose categoryPurpose, Purpose purpose) { SequenceNumber = sequenceNumber; SequenceNumberDetail = sequenceNumberDetail; Message = message; ClientReference = clientReference; OtherAccountBic = otherAccountBic; TransactionType = transactionType; IsoReasonReturnCode = isoReasonReturnCode; CategoryPurpose = categoryPurpose; Purpose = purpose; }
private AzureMethodTemplateModel GetPagingNextMethod(out string invocation, bool async = false) { string name = ((string)this.Extensions["nextMethodName"]).ToCamelCase(); string group = (string)this.Extensions["nextMethodGroup"]; var methodModel = new AzureMethodTemplateModel( ServiceClient.Methods.FirstOrDefault(m => group == null ? m.Group == null : group.Equals(m.Group, StringComparison.OrdinalIgnoreCase) && m.Name.Equals(name, StringComparison.OrdinalIgnoreCase)), ServiceClient); group = group.ToPascalCase(); if (group != null) { group += "Operations"; } if (async) { name = name + "Async"; } if (group == null || this.OperationName == methodModel.OperationName) { invocation = name; } else { invocation = string.Format(CultureInfo.InvariantCulture, "{0}.get{1}().{2}", ClientReference.Replace("this.", ""), group, name); } return(methodModel); }
private MethodJva GetPagingNextMethodWithInvocation(out string invocation, bool async = false, bool singlePage = true) { String methodSuffixString = "WithServiceResponse"; if (singlePage) { methodSuffixString = "SinglePage"; } if (IsPagingNextOperation) { invocation = Name + methodSuffixString + (async ? "Async" : ""); return(this); } string name = this.Extensions.GetValue <Fixable <string> >("nextMethodName")?.ToCamelCase(); string group = this.Extensions.GetValue <Fixable <string> >("nextMethodGroup")?.ToCamelCase(); group = CodeNamerJva.Instance.GetMethodGroupName(group); var methodModel = CodeModel.Methods.FirstOrDefault(m => (group == null ? m.Group == null : group.Equals(m.Group, StringComparison.OrdinalIgnoreCase)) && m.Name.ToString().Equals(name, StringComparison.OrdinalIgnoreCase)) as MethodJva; group = group.ToPascalCase(); name = name + methodSuffixString; if (async) { name = name + "Async"; } if (group == null || this.Group == methodModel.Group) { invocation = name; } else { invocation = string.Format(CultureInfo.InvariantCulture, "{0}.get{1}().{2}", ClientReference.Replace("this.", ""), group, name); } return(methodModel); }
public static object _Copier(object original) { ClientReference input = ((ClientReference)(original)); return((ClientReference)(GrainReference.CopyGrainReference(input))); }
public static IClient Cast(IAddressable grainRef) { return(ClientReference.Cast(grainRef)); }
public static object _Deserializer(System.Type expected, Orleans.Serialization.BinaryTokenStreamReader stream) { return(ClientReference.Cast(((Orleans.GrainReference)(GrainReference.DeserializeGrainReference(expected, stream))))); }
public static void _Serializer(object original, Orleans.Serialization.BinaryTokenStreamWriter stream, System.Type expected) { ClientReference input = ((ClientReference)(original)); GrainReference.SerializeGrainReference(input, stream, expected); }
private AzureMethodTemplateModel GetPagingNextMethodWithInvocation(out string invocation, bool async = false, bool singlePage = true) { String methodSuffixString = "WithServiceResponse"; if (singlePage) { methodSuffixString = "SinglePage"; } if (IsPagingNextOperation) { invocation = Name + methodSuffixString + (async ? "Async" : ""); return(this); } string name = ((string)this.Extensions["nextMethodName"]).ToCamelCase(); string group = _namer.GetMethodGroupName((string)this.Extensions["nextMethodGroup"]); var methodModel = new AzureMethodTemplateModel( ServiceClient.Methods.FirstOrDefault(m => (group == null ? m.Group == null : group.Equals(m.Group, StringComparison.OrdinalIgnoreCase)) && m.Name.Equals(name, StringComparison.OrdinalIgnoreCase)), ServiceClient); group = group.ToPascalCase(); name = name + methodSuffixString; if (async) { name = name + "Async"; } if (group == null || this.OperationName == methodModel.OperationName) { invocation = name; } else { invocation = string.Format(CultureInfo.InvariantCulture, "{0}.get{1}().{2}", ClientReference.Replace("this.", ""), group, name); } return(methodModel); }