Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

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