This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public abstract class SomeAbstractRepository | |
{ | |
} | |
public class DerivedSomeRepository1 : SomeAbstractRepository | |
{ | |
public string SomeRandomProperty1 {get; set; } | |
public string SomeRandomProperty2 {get; set; } | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class NestedChildRepository | |
{ | |
. | |
. | |
public AbsractBaseRepository AbsractBaseRepository {get; set; } | |
. | |
. | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class NestedChildDto | |
{ | |
. | |
. | |
public AbsractBaseDto AbsractBaseDto {get; set; } | |
. | |
. | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public abstract class SomeAbstractDto | |
{ | |
} | |
public class DerivedSomeDto1 : SomeAbstractDto | |
{ | |
public string SomeRandomProperty1 {get; set; } | |
public string SomeRandomProperty2 {get; set; } | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public SomeAbstractDto ToDto(SomeAbstractRepository repository) | |
{ | |
if (repository == null) return null; | |
return (SomeAbstractDto)ToDto((dynamic)repository); | |
} | |
public DerivedSomeDto1 ToDto(DerivedSomeRepository1 repository) | |
{ | |
return new DerivedSomeDto1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public SomeAbstractDto ToDto(SomeAbstractRepository repository) | |
{ | |
if (repository == null) return null; | |
return (SomeAbstractDto)ToDto((dynamic)repository); | |
} | |
public DerivedSomeDto1 ToDto(DerivedSomeRepository1 repository) | |
{ | |
return new DerivedSomeDto1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public SomeAbstractDto ToDto(SomeAbstractRepository repository) | |
{ | |
if (repository == null) return null; | |
case DerivedSomeDto1 derivedSomeDto1 : | |
return ToDto(derivedSomeDto1); | |
. | |
. | |
. | |
case DerivedSomeDto18 derivedSomeDto18: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public SomeAbstractDto ToDto(SomeAbstractRepository repository) | |
{ | |
if (repository == null) return null; | |
case DerivedSomeDto1 derivedSomeDto1 : | |
return ToDto(derivedSomeDto1); | |
. | |
. | |
. | |
case DerivedSomeDto18 derivedSomeDto18: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using Microsoft.Azure.WebJobs; | |
using Microsoft.Extensions.Logging; | |
namespace DemoNServiceBusSubscriberAndAzureFunctionPublisher | |
{ | |
public static class TimerTriggerAzureFunction | |
{ | |
[FunctionName("QueueMessageToWorker")] | |
public static void Run([TimerTrigger("0 */5 * * * *")]TimerInfo myTimer, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using Microsoft.Azure.WebJobs; | |
using Microsoft.Extensions.Logging; | |
using Newtonsoft.Json; | |
namespace DemoNServiceBusSubscriberAndAzureFunctionPublisher | |
{ | |
public static class TimerTriggerAzureFunction | |
{ | |
[FunctionName("QueueMessageToWorker")] |