UaClient/ServiceModel/Ua/ServiceExtensions.cs
/// <summary>
/// Requests a Refresh of all Conditions.
/// </summary>
/// <param name="channel">The channel.</param>
/// <param name="subscriptionId">The subscriptionId.</param>
/// <returns>A <see cref="Task"/> representing the asynchronous operation.</returns>
Requests a Refresh of all Conditions.
Requests a Refresh of all Conditions .
public static async Task<StatusCode> ConditionRefreshAsync(this IRequestChannel channel, uint subscriptionId)
        {
            var response = await channel.CallAsync(new CallRequest
            {
                MethodsToCall = new[]
                {
                    new CallMethodRequest
                    {
                        ObjectId = NodeId.Parse(ObjectTypeIds.ConditionType),
                        MethodId = NodeId.Parse(MethodIds.ConditionType_ConditionRefresh),
                        InputArguments = new Variant[] { subscriptionId }
                    }
                }
            });
            return response.Results[0].StatusCode;
        }
public static async Task < StatusCode > ConditionRefreshAsync ( this IRequestChannel channel , uint subscriptionId ) { var response = await channel . CallAsync ( new CallRequest { MethodsToCall = new [ ] { new CallMethodRequest { ObjectId = NodeId . Parse ( ObjectTypeIds . ConditionType ) , MethodId = NodeId . Parse ( MethodIds . ConditionType_ConditionRefresh ) , InputArguments = new Variant [ ] { subscriptionId } } } } ) ; return response . Results [ 0 ] . StatusCode ; }
Requests a Refresh of all Conditions.
Requests a Refresh of all Conditions .
A  representing the asynchronous operation.
A representing the asynchronous operation .
IRequestChannel
this
subscriptionId
uint
None
channel
None