Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.
 
 
 

61 рядки
1.1 KiB

  1. using System;
  2. using System.Threading.Tasks;
  3. namespace DotNetCore.CAP.Test
  4. {
  5. public class Sample
  6. {
  7. public void DateTimeParam(DateTime dateTime)
  8. {
  9. }
  10. public void StringParam(string @string)
  11. {
  12. }
  13. public void GuidParam(Guid guid)
  14. {
  15. }
  16. public void UriParam(Uri uri)
  17. {
  18. }
  19. public void IntegerParam(int @int)
  20. {
  21. }
  22. public void ComplexTypeParam(ComplexType complexType)
  23. {
  24. }
  25. public void ThrowException()
  26. {
  27. throw new Exception();
  28. }
  29. public async Task<int> AsyncMethod()
  30. {
  31. await Task.FromResult(3);
  32. throw new Exception();
  33. }
  34. }
  35. public class ComplexType
  36. {
  37. public DateTime Time { get; set; }
  38. public string String { get; set; }
  39. public Guid Guid { get; set; }
  40. public Person Person { get; set; }
  41. }
  42. public class Person
  43. {
  44. public int Age { get; set; }
  45. public string Name { get; set; }
  46. }
  47. }