public OperationStartInformation DoSomethingAuthenticatedAsync(SomeParameters parmaters) { var operation = new DoSomethingAuthenticatedOperation(_operationsManager, parmaters); var operationStart = operation.RunAsync(); return new OperationStartInformation { OperationId = operationStart.OperationId, IsReportingProgress = false, IsSupportingCancel = false, }; }
// [OperationBehavior(Impersonation =ImpersonationOption.Required)] // [PrincipalPermission(SecurityAction.Demand, Authenticated = true)] public OperationResult DoSomethingAuthenticated(SomeParameters parmaters) { var operation = new DoSomethingAuthenticatedOperation(_operationsManager, parmaters); return operation.RunSync(); }