public OperationResult<SomeResult> DoSomething(SomeParameters parmaters)
 {
     var operationId = _operationsManager.RegistrOperation("Do something");
     var operation = new DoSomethingOperation(_operationsManager, operationId, parmaters);
     var handler = operation.RunAsync();
     handler.WaitOne();
     return DoSomethingGetResult(operationId);
 }
 public OperationStartInformation DoSomethingAsync(SomeParameters parmaters)
 {
     var guid = _operationsManager.RegistrOperation("Do something");
     var operation = new DoSomethingOperation(_operationsManager, guid, parmaters);
     operation.RunAsync();
     return new OperationStartInformation
     {
         OperationGuid = guid,
         IsReportingProgress = false,
         IsSupportingCancel = false,
     };
 }