//
// Copyright (c) ZeroC, Inc. All rights reserved.
//
//
// Ice version 3.7.2
//
//
//
// Generated from file `Progress.ice'
//
// Warning: do not edit this file.
//
//
//
using _System = global::System;
#pragma warning disable 1591
namespace Smartswitch
{
[global::System.Runtime.InteropServices.ComVisible(false)]
[global::System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704")]
[global::System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1707")]
[global::System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709")]
[global::System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1710")]
[global::System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1711")]
[global::System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1715")]
[global::System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1716")]
[global::System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1720")]
[global::System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1722")]
[global::System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1724")]
public partial interface Progress : global::Ice.Object, ProgressOperations_
{
}
}
namespace Smartswitch
{
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("slice2cs", "3.7.2")]
public delegate void Callback_Progress_inc();
}
namespace Smartswitch
{
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("slice2cs", "3.7.2")]
public interface ProgressPrx : global::Ice.ObjectPrx
{
void inc(global::Ice.OptionalContext context = new global::Ice.OptionalContext());
global::System.Threading.Tasks.Task incAsync(global::Ice.OptionalContext context = new global::Ice.OptionalContext(), global::System.IProgress progress = null, global::System.Threading.CancellationToken cancel = new global::System.Threading.CancellationToken());
global::Ice.AsyncResult begin_inc(global::Ice.OptionalContext context = new global::Ice.OptionalContext());
global::Ice.AsyncResult begin_inc(global::Ice.AsyncCallback callback, object cookie);
global::Ice.AsyncResult begin_inc(global::Ice.OptionalContext context, global::Ice.AsyncCallback callback, object cookie);
void end_inc(global::Ice.AsyncResult asyncResult);
}
}
namespace Smartswitch
{
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("slice2cs", "3.7.2")]
public interface ProgressOperations_
{
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("slice2cs", "3.7.2")]
void inc(global::Ice.Current current = null);
}
}
namespace Smartswitch
{
[global::System.Runtime.InteropServices.ComVisible(false)]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("slice2cs", "3.7.2")]
[global::System.Serializable]
public sealed class ProgressPrxHelper : global::Ice.ObjectPrxHelperBase, ProgressPrx
{
public ProgressPrxHelper()
{
}
public ProgressPrxHelper(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) : base(info, context)
{
}
#region Synchronous operations
public void inc(global::Ice.OptionalContext context = new global::Ice.OptionalContext())
{
try
{
_iceI_incAsync(context, null, global::System.Threading.CancellationToken.None, true).Wait();
}
catch(global::System.AggregateException ex_)
{
throw ex_.InnerException;
}
}
#endregion
#region Async Task operations
public global::System.Threading.Tasks.Task incAsync(global::Ice.OptionalContext context = new global::Ice.OptionalContext(), global::System.IProgress progress = null, global::System.Threading.CancellationToken cancel = new global::System.Threading.CancellationToken())
{
return _iceI_incAsync(context, progress, cancel, false);
}
private global::System.Threading.Tasks.Task _iceI_incAsync(global::Ice.OptionalContext context, global::System.IProgress progress, global::System.Threading.CancellationToken cancel, bool synchronous)
{
var completed = new global::IceInternal.OperationTaskCompletionCallback