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 (var amazonClient = new AmazonS3Client()) | |
{ | |
var getObjectMetadataRequest = new GetObjectMetadataRequest() { BucketName = RawBucketName, Key = fileName }; | |
var meta = amazonClient.GetObjectMetadata(getObjectMetadataRequest); | |
var fileSize = meta.Headers.ContentLength; | |
} |
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
[EndDateValidation] | |
public class CustomDate | |
{ | |
[DisplayFormat(DataFormatString = "0:dd-MM-yyyy}")] | |
public DateTime StartDate { get; set; } | |
public DateTime EndDate { get; set; } | |
[Required] | |
public string Test { 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
using System; | |
using System.Collections.Generic; | |
using Autofac; | |
using MassTransit; | |
using MassTransit.AutofacIntegration; | |
using MassTransit.AzureServiceBusTransport; | |
using Microsoft.ServiceBus; | |
namespace StarNow.Events.Core.Configuration | |
{ |
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 System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using MassTransit; | |
using MassTransit.AzureServiceBusTransport; | |
using MassTransit.Util; | |
using Microsoft.ServiceBus; |