//[PrincipalPermission(SecurityAction.Demand, Authenticated = true)] public OperationStartInformation DoSomethingAsync(SomeParameters parmaters) { var operation = new DoSomethingOperation(_operationsManager, parmaters); var operationStart = operation.RunAsync(); return new OperationStartInformation { OperationId = operationStart.OperationId, IsReportingProgress = false, IsSupportingCancel = false, }; }
public OperationStartInformation DoSomethingAsync(SomeParameters parmaters) { return _target.DoSomethingAsync(parmaters); }
// [PrincipalPermission(SecurityAction.Demand, Authenticated = true)] public OperationResult DoSomething(SomeParameters parmaters) { var operation = new DoSomethingOperation(_operationsManager, parmaters); return operation.RunSync(); }
public OperationResult DoSomething(SomeParameters parmaters) { return _target.DoSomething(parmaters); }